![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
aop
鲨鱼也是鱼
这个作者很懒,什么都没留下…
展开
-
spring aop 动态代理错误
以下文章转自http://blog.csdn.net/yinzn2011/article/details/46455973 今天在学习spring aop中的动态代理时,碰到了一个类型转换的问题:Java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to com.bjsxt.service.UserSer转载 2017-01-16 15:05:03 · 791 阅读 · 0 评论 -
struts2,spring整合中使用spring 管理struts2的action,springaop 常见问题
在整合过程中struts2的action有spring管理必须配置struts配置文件的一些属性如下 1 2 spring中action的默认scope 是singleton (单例) ,strtus2 中action为propotype (多例) 在项目中我使用了注解标记 用来实现日志的记录 1. 同一个切面中的通知的执行顺原创 2017-03-01 14:39:53 · 1298 阅读 · 0 评论 -
spring 注解aop不生效
首先基础要理解spring配置文件和springmvc配置文件 spring注解不生效可从以下几个方面找原因 1 springmvc的配置文件中只配置扫描@Controller的注解,spring的配置文件扫描除了@Controller的注解的其他的注解 2 检查@Pointcut 的表达式是否正确 3 如果在service层aop 可以生效,controller层不生效,把 添加到原创 2017-06-28 09:50:58 · 26747 阅读 · 3 评论