Spring错误

Posted 小毛喵喵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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


以上是关于Spring错误的主要内容,如果未能解决你的问题,请参考以下文章