@EnableAsync
public class Application extends SpringBootServletInitializer {
- private Logger logger = LoggerFactory.getLogger(Application.class);
+ private Logger log = LoggerFactory.getLogger(Application.class);
/**
* Configures the application.
@Bean
public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
return args -> {
- logger.info("################################");
- logger.info("Inspecting the beans provided by Spring Boot:");
+ log.info("################################");
+ log.info("Inspecting the beans provided by Spring Boot:");
String[] beanNames = ctx.getBeanDefinitionNames();
Arrays.sort(beanNames);
for (String beanName : beanNames) {
System.out.println(beanName);
+ log.info(beanName);
}
- logger.info("################################");
+ log.info("################################");
};
}