spring aop报错:Cannot proxy target class because CGLIB2 is not available.

来源:互联网 发布:淘宝店铺地址格式 编辑:程序博客网 时间:2024/05/16 19:30
使用Spring的aop是遇到如下错误:

Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.

解决方法:

导入cglib-nodep-2.1_3.jar包即可


0 0
原创粉丝点击