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

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)")

重启,继续报错:
Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: xxx

 

 

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

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

上一篇:20210304-赵琳-Therapeutics potentiating microglial p21-Nrf2 axis can rescue neurodegeneration caused


下一篇:Caused by: java.sql.SQLException: Can‘t call commit when autocommit=true 踩坑