![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
yjian84
这个作者很懒,什么都没留下…
展开
-
spring aop 如何切面到mvc 的controller
网上搜罗半天,不知道什么原因,看了源码,好像他们说的controller 是不受代理的,也对哈,不知道怎么办,于是在http://stackoverflow.com/questions/17834958/spring-aop-is-not-working-in-with-mvc-structure?rq=1 这个地方有个人说了: from application-con...2013-08-06 10:48:51 · 471 阅读 · 0 评论 -
spring aop中获得request
[code="java"]@Component @Aspect public class SysLogAspectJ { @Autowired private HttpServletRequest request;[/code] web.xml [code="java"] org.springframework.web.context.request...原创 2013-08-06 12:28:09 · 135 阅读 · 0 评论 -
spring3.2 mvc @ControllerAdvice 不起作用
I found the solution for the above problem. Actually @ControllerAdvice needs MVC namespace declaration in XML file. Or we can use @EnableWebMvc with @ControllerAdvice annotation [code="java"]...原创 2013-08-06 18:17:39 · 593 阅读 · 0 评论