初学注解实现aop 请问下面这种报错如何解决
Exceptioninthread"main"org.springframework.beans.factory.BeanCreationException:Errorc...
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sunimpl' defined in file [C:\Users\Administrator\Workspaces\MyEclipse 10\SpringAop\bin\spring\aop\sunimpl.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ')' at character position 16
excution(public int spring.aop.sun.add(int,int)) 展开
excution(public int spring.aop.sun.add(int,int)) 展开
1个回答
展开全部
找找这个原因
“Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut anyMethod”
然后再看看
Error creating bean with name 'personService' defined in class path resource [bean.xml],personService
有没有创建正确,拼写对不对
“Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut anyMethod”
然后再看看
Error creating bean with name 'personService' defined in class path resource [bean.xml],personService
有没有创建正确,拼写对不对
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询