runtime 是运行的意思。指的是直接在运行时所需要的包,而非在编译时等时候需要的包。
<!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.6</version>
<scope>runtime</scope>
</dependency>
当在写注释的时候没有提示 去掉
<scope>runtime</scope>
即可