Spring MVC and AOP: @Pointcuts for @Controllers only works in Testing and not for Production
- 阅读更多 关于 Spring MVC and AOP: @Pointcuts for @Controllers only works in Testing and not for Production
问题 I am working with Spring Framework 4.3.3 in a Web Environment: I have two contexts: RootApplicationContext ServletApplicationContext I know the ServletApplicationContext contains all the beans about the web side, for example @Controller . Furthermore ServletApplicationContext is able to access all the context or beans from the RootApplicationContext for example @Service, @Repository etc. Until here I am fine. Note it applies for @Configuration classes too. (Infrastructure) Therefore with the