zalando-stups / put-it-to-rest

https://github.com/zalando/riptide/tree/master/riptide-spring-boot-starter
MIT License
11 stars 6 forks source link

Can we declare the BeanDefinitionRegistryPostProcessor in a static method? #9

Closed whiskeysierra closed 8 years ago

whiskeysierra commented 8 years ago

Cannot enhance @Configuration bean definition 'org.zalando.putittorest.RestClientAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.