您的位置:首页 > 编程语言 > Java开发

Spring AOP 错误:Pointcut is malformed: Pointcut is not well-formed

2017-08-05 01:20 537 查看
具体错误信息如下

警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aspectDemo' defined in class path resource [spring-schema-advice.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 56
execution(*com.spring.demo.aop.schema.advice.biz.*Biz.*(..))
^
................


这说明是execution(com.spring.demo.aop.schema.advice.biz.*Biz.(..))出现了问题

解决方法:

在*和com.spring.demo.aop.schema.advice.biz.*Biz.*(..)之间添加空格
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐