摘要: 耗时2天,终于找到了问题原因:切面类没有加@Component注解 @Aspect不是spring自己的东西,没有@Component,得自己引入。。。 不像@Controller注解 阅读全文
posted @ 2017-10-25 12:47 默宁 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 原因简述:父子容器问题!事务是基于AOP实现的,事务配置写在了spring里;代理类是在spring的BeanFactory中; springMVC里也扫描了service相关的类; 虽然springMVC的BeanFactory继承于spring的BeanFactory,但controller注入 阅读全文
posted @ 2017-10-25 12:44 默宁 阅读(572) 评论(0) 推荐(0) 编辑