File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 2424package org .wise ;
2525
2626import org .springframework .beans .factory .config .PropertiesFactoryBean ;
27- import org .springframework .boot .CommandLineRunner ;
2827import org .springframework .boot .SpringApplication ;
2928import org .springframework .boot .autoconfigure .SpringBootApplication ;
3029import org .springframework .boot .builder .SpringApplicationBuilder ;
3130import org .springframework .boot .web .servlet .support .SpringBootServletInitializer ;
3231import org .springframework .cache .annotation .EnableCaching ;
33- import org .springframework .context .ApplicationContext ;
3432import org .springframework .context .annotation .Bean ;
3533import org .springframework .core .env .Environment ;
3634import org .springframework .core .io .ClassPathResource ;
@@ -58,18 +56,4 @@ public PropertiesFactoryBean i18nProperties() {
5856 bean .setLocation (new ClassPathResource ("i18n/i18n.properties" ));
5957 return bean ;
6058 }
61-
62- @ Bean
63- public CommandLineRunner commandLineRunner (ApplicationContext ctx ) {
64- return args -> {
65- /*
66- System.out.println("Beans provided by Spring Boot:");
67- String[] beanNames = ctx.getBeanDefinitionNames();
68- Arrays.sort(beanNames);
69- for (String beanName : beanNames) {
70- System.out.println(beanName);
71- }
72- */
73- };
74- }
7559}
You can’t perform that action at this time.
0 commit comments