@Aspect注解无效

Pointcut的execution配置正确的话,检查下,是否加了以下jar包

<!-- http://mvnrepository.com/artifact/org.aspectj/aspectjrt -->
<dependency>
    <groupId>org.aspectj</groupId>
    <artifactId>aspectjrt</artifactId>
    <version>1.8.9</version>
</dependency>
		<!-- http://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
<dependency>
    <groupId>org.aspectj</groupId>
    <artifactId>aspectjweaver</artifactId>
    <version>1.8.9</version>
</dependency>
		<!-- http://mvnrepository.com/artifact/cglib/cglib -->
<dependency>
    <groupId>cglib</groupId>
    <artifactId>cglib</artifactId>
    <version>3.2.2</version>
</dependency>

转载:https://blog.csdn.net/snails_zx/article/details/51491493

猜你喜欢

转载自blog.csdn.net/sinat_36710456/article/details/83144424