在写AspectJ中的基于注解的声明式时,出现了
java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Pointcut
错误,目前找到的原因应该是版本不兼容,
AspectJ框架支持的包:aspectjweaver-1.8.10.jar 是1.8.10的版本,而其它Spring基本jar包是5.2.3版本的,应该是不兼容,所以又把Spring基本jar包全换成了4.3.18的版本,于是就成功了。
在写AspectJ中的基于注解的声明式时,出现了
java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Pointcut
错误,目前找到的原因应该是版本不兼容,
AspectJ框架支持的包:aspectjweaver-1.8.10.jar 是1.8.10的版本,而其它Spring基本jar包是5.2.3版本的,应该是不兼容,所以又把Spring基本jar包全换成了4.3.18的版本,于是就成功了。