Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: xxx


报错全称

Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: xxx

疑似产生的原因

修改过注解的包名

解决方案

1)将注解改为全路径全称

@Pointcut("@annotation(Log)")   改为     @Pointcut("@annotation(com.liyh.logging.aop.Log)")

重启,继续报错:

但是,这个报错的类并不是刚才那个类呀。

因此,搞定,——这个新错误也是同样的解决办法。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM