

21:28:44.391 INFO 16554 - o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to 21:28:43.889 INFO 16554 - o.s. : Root WebApplicationContext: initialization completed in 1695 ms : Initializing Spring embedded WebApplicationContext 21:28:43.785 INFO 16554 - .StandardEngine : Starting Servlet Engine: Apache Tomcat/7.0.54 t.TomcatEmbeddedServletContainerFactory : Server initialized with port: 8080 21:28:42.828 INFO 16554 - o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver': replacing scope= abstract=false lazyInit=false autowireMode=3 dependenc圜heck=0 autowireCandidate=true primary=false factoryBeanName=.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration factoryMethodName=beanNameViewResolver initMethodName=null destroyMethodName=(inferred) defined in class path resource ] with scope= abstract=false lazyInit=false autowireMode=3 dependenc圜heck=0 autowireCandidate=true primary=false factoryBeanName=.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter factoryMethodName=beanNameViewResolver initMethodName=null destroyMethodName=(inferred) defined in class path resource ] 21:28:42.196 INFO 16554 - ationConfigEmbeddedWebApplicationContext : Refreshing startup date root of context hierarchy 21:28:42.149 INFO 16554 - foo.Application : Starting Application on grb-macbook-pro.local with PID 16554 (/Users/grahamrb/Dropbox/dev-projects/spring-apps/properties-test-app/build/libs/properties-test-app-0.1.0.jar started by grahamrb in /Users/grahamrb/Dropbox/dev-projects/spring-apps/properties-test-app) build/libs/properties-test-app-0.1.0.jar Log output when executing the Spring Boot app: grb-macbook-pro:properties-test-app grahamrb$ java -jar. n(Application.class, args) Īpplication.properties (located in /src/main/resources/) some.prop=aabbcc ("= " + prop + "= ") Īpplication.java (located in /src/main/java/foo/) package foo Import .properties.EnableConfigurationProperties Import .properties.ConfigurationProperties MyBean.java (located in /src/main/java/foo/bar/) package foo.bar I'm sure I'm doing something stupid, thanks for any suggestions. When I run the app below the external configuration in the application.properties file does not get populated into the variable within the bean. I've tried to follow the information on the spring boot documentation however I'm hitting a road block. I have a very simple Spring Boot app that I'm trying to get working with some externalised configuration.
