去掉@Component就可以了。 【是否去掉@Component,要看spring的其它配置,换个文件夹,没有@Component反而不会执行aop了。】
Springboot项目 , 发现我的切面 @Around 总是执行两次,试了楼上方法去掉 切面类的@Component注解,竟然解决了, 非常感谢.