Spring错误

今天在学习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.

解决办法:

在导入了IOC基本jar包和AOP基本jar包后还需导入下面这个jar包,才能避免这种问题的发生

  cglib-nodep-2.1.3.jar

posted @ 2018-02-28 23:17  没有名字~  阅读(132)  评论(0编辑  收藏  举报