Caused by: java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Around

时间:2023-01-19 22:03:37

原因:缺少aspect,AOP的maven坐标

 

导入maven坐标:

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>