使用出现aspect 出现:error at ::0 can't find referenced pointcut pt

快来打我* 2022-03-11 01:06 227阅读 0赞

今天敲代码时出现如下报错

  1. 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'saveLog' defined in class path resource [bean.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut pt
  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'saveLog' defined in class path resource [bean.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut pt

在这里插入图片描述
笔者将模块上上下下检查了一遍,最后将测试类移出test到main包中使用main方法进行测试,运行正常,异常排除

发表评论

表情:
评论列表 (有 0 条评论,227人围观)

还没有评论,来说两句吧...

相关阅读