Spring AOP Advice on Annotated Controllers

前端 未结 3 1177
有刺的猬
有刺的猬 2020-12-02 23:44

I am trying to use AOP to do some processing after an annotated controller. Everything is running with no errors, but the advice is not being executed.

Here is the

3条回答
  •  爱一瞬间的悲伤
    2020-12-03 00:16

    For MVC controllers the preferred method of accomplishing what you are trying to do is to use interceptors. See http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-handlermapping-interceptor

提交回复
热议问题