具体参考:https://blog.csdn.net/haha_66666/article/details/81507416
我在配的过程中AOP的maven依赖有点问题,替换成以下就可以了:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>