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

来源:互联网 发布:top的域名注册 编辑:程序博客网 时间:2024/05/21 07:14

具体错误信息如下

警告: 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 56execution(*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.*(..)之间添加空格
阅读全文
0 0
原创粉丝点击