测试注解AOP出现的错误:警告: Exception encountered during context initialization -cancelling refresh attempt

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountService’ defined in file [D:\IdeaProject\day03_eesy_04adviceType - 副本\target\classes\com\spring\service\Impl\AccountServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can’t find referenced pointcut pt1
Exception in thread “main” org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘accountService’ defined in file [D:\IdeaProject\day03_eesy_04adviceType - 副本\target\classes\com\spring\service\Impl\AccountServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can’t find referenced pointcut pt1

从头到尾检查了一遍注解没有什么问题,最后在pom.xml发现了引入的jar包有问题

发生错误的jar包是这个
测试注解AOP出现的错误:警告: Exception encountered during context initialization -cancelling refresh attempt_第1张图片
应该修改成
测试注解AOP出现的错误:警告: Exception encountered during context initialization -cancelling refresh attempt_第2张图片
就可以啦

你可能感兴趣的:(经验)