archaius-spring-adapter icon indicating copy to clipboard operation
archaius-spring-adapter copied to clipboard

@Bean method MyAppConfig.bridgePropertyPlaceholder is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface

Open andrewharmellaw opened this issue 8 years ago • 0 comments

14:33:09.033 [main] WARN o.s.c.a.ConfigurationClassEnhancer - @Bean method MyAppConfig.bridgePropertyPlaceholder is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.

andrewharmellaw avatar Mar 23 '16 14:03 andrewharmellaw