Java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.prox

来自ling
跳转至: 导航搜索

It looks like Spring 3.2 already includes cglib and asm (see item 4.21 of the release notes: http://static.springsource.org/spring-framework/docs/3.2.0.RELEASE/spring-framework-reference/html/new-in-3.2.html). They are in the spring-core jar.

You should try removing the asm and cglib jars from the classpath and see if it makes any difference.

spring-core-5.0.7.RELEASE中包含了相关代码,需要去掉对这2个包的引用

           <dependency>
               <groupId>cglib</groupId>
               <artifactId>cglib</artifactId>
               <version>3.2.4</version>
           </dependency>