Using @Before aspect on @Controller methods with Spring doesn't work
问题 I have a web-app using Spring 3, where controllers are annotated with @Controller. The public methods of the controllers are annotated with @RequestMapping. This works perfectly fine. Now I want to do a check before invoking any of the public methods in the controllers. I've created a @Before aspect using a Pointcut expression that selects all controller methods annotated with @RequestMapping. I've registered the aspect using <aop:aspectj-autoproxy> <aop:include name="myAspect"/> </aop