Specifying Shiro's LifecycleBeanPostProcessor in programmatic Spring @Configuration causes errors -
I have a spring web app that I am programmatically configuring. I am trying to exclude Apache's head as my certification framework and I am integrating Shiro with Spring, especially using programmatic configuration (as I decided to write a lot of XML Did not want). This is the piece of the relevant code:
@Configuration // Changing Spring XML configuration @EnableTransactionManagement // Public Task Announcements for Public Species SpringAppConfig {@Bean Public LifecycleBeanPostProcessor lifecycleBeanPostProcessor () {Return New LifecycleBeanPostProcessor make capable () ; }} When I start my web app, I get errors, where using Spring Annotation is unable to process on any of my beans.
itemprop = "text"> after the comment in this issue:
I stable < / Code> In order to avoid early configuration, the system should declare as the bean creation (I'm not really sure how the Spring Configuration Mechanism works, which is probably the reason why I encountered this error). @Bean Public Stable LifecycleBeanPostProcessor lifecycleBeanPostProcessor () {Return New LifecycleBeanPostProcessor (); } It prevents all errors from occurring.
Comments
Post a Comment