[编程新手]Spring程序运行出错-基于注解的声明式Aspectj(aop,can't find referenced......)

[错误信息]

关键错误信息:

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [E:\study.JavaWeb.1eclipse.Workspace\chapter03\build\classes\com\ZhangWenhan\jdk\UserDaoImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myPoingCut

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [E:\study.JavaWeb.1eclipse.Workspace\chapter03\build\classes\com\ZhangWenhan\jdk\UserDaoImpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myPoingCut

 

[解决办法]

 

找不到mypointingCut?PoingCut?应该是我写错了。

在文件里面找一找那个位置写的是"myPoingCut",改过来就行啦。

如图。

 

posted @ 2020-04-12 11:14  莫提默  阅读(205)  评论(0)    收藏  举报