Caused by: Java. Lang. illegalargumentexception: error at: 0 can't find referenced pointcut
Solution:
1. Version issues. View your version. My jar package for jdk1.7 is for aspectjweaver-1.6.6.jar and aspectjrt-1.6.6.jar
2. Spelling is incorrect.CodeThere is an error. You can refer to my.
3. If not. You can leave a message.
Package COM. snow. aspect; import Org. aspectj. lang. annotation. after; import Org. aspectj. lang. annotation. aspect; import Org. aspectj. lang. annotation. before; import Org. aspectj. lang. annotation. pointcut; import Org. springframework. stereotype. component; @ component @ aspectpublic class logaspect {@ pointcut ("execution (Public void COM. snow. dao. *. add () ") Public void logcut4add () {}@ before (" logcut4add () ") Public void before () {system. out. println ("before ................... ") ;}@ after (" logcut4add () ") Public void after () {system. out. println ("after .................. ");}}