使用出现aspect 出现:error at ::0 can't find referenced pointcut pt
今天敲代码时出现如下报错
警告: 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
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方法进行测试,运行正常,异常排除
还没有评论,来说两句吧...