码迷,mamicode.com
首页 > 编程语言 > 详细

java 坑总结

时间:2019-04-16 14:42:02      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:prope   相关   iso   aop   jar包   current   pom   ram   pid   

1.Cannot find current proxy: Set ‘exposeProxy‘ property on Advised to ‘true‘ to make it available.

解决方法:在配置文件中添加

1     <aop:aspectj-autoproxy expose-proxy="true"/>
2     <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator">
3         <property name="proxyTargetClass" value="true"/>
4     </bean>

pom.xml中添加aop相关jar包

 1        <dependency>
 2             <groupId>org.springframework</groupId>
 3             <artifactId>spring-aop</artifactId>
 4             <version>${spring.version}</version>
 5         </dependency>
 6 
 7         <dependency>
 8             <groupId>org.springframework</groupId>
 9             <artifactId>spring-aspects</artifactId>
10             <version>${spring.version}</version>
11         </dependency>    

 

java 坑总结

标签:prope   相关   iso   aop   jar包   current   pom   ram   pid   

原文地址:https://www.cnblogs.com/alice-cj/p/10716465.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!