解决方案:
在pom.xml配置文件中添加依赖
在pom.xml配置文件中添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
如果添加后依然报错可以重新加载maven包
1. Build-->Rebulid Project 就好了
2. 在项目根目录执行cmd
mvn clean install -Dmaven.test.skip=true
mvn clean install -Dmaven.test.skip=true
3. File-->Settings 然后找到相对于菜单按图 编号顺序操作,项目右键->Maven->Reimport;
