这里的问题只是针对spring 2.0.7 至于其他版本, 不知道有没有这些问题.
现象:
写道
Caused by: java.lang.IllegalArgumentException
: error at ::0 formal unbound in pointcut
at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
: error at ::0 formal unbound in pointcut
at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
原因:
语法的问题
解决方法:一个个去掉,看哪个引起的错
现象:
写道
Caused by: java.lang.IllegalArgumentException: error at ::0 incompatible number of arguments to pointcut, expected 1 found 0
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
添加依赖:
<dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>2.2.3</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-commons</artifactId> <version>2.2.3</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-util</artifactId> <version>2.2.3</version> </dependency>
现象:
写道
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer
添加依赖:
<dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>2.1_3</version> </dependency>
但是必须去掉依赖:
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.1_3</version>
</dependency>