Spring AOP 错误:Pointcut is malformed: Pointcut is not well-formed
2017-08-05 01:20
537 查看
具体错误信息如下
这说明是execution(com.spring.demo.aop.schema.advice.biz.*Biz.(..))出现了问题
解决方法:
警告: 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.*(..)之间添加空格
相关文章推荐
- Error:Pointcut is malformed: Pointcut is not well-formed: expecting '(' at character position 0
- Spring3.x错误--Pointcut is not well-formed:expecting 'name pattern' at...
- Pointcut is malformed: Pointcut is not well-formed: expecting 'name pattern' at character position 5
- 配置aop报错: Pointcut is not well-formed: expecting 'name pattern' at character position
- 解决Pointcut is not well-formed
- Pointcut is not well-formed: expecting 'name pattern' at character position
- Pointcut is not well-formed: expecting 'name pattern' at character position
- Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ')' at character position 11
- spring aop 报错Pointcut is not well-formed: expecting ‘name pattern’ at character position 48 executi
- spring aop Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: 报错
- Pointcut is not well-formed: expecting 'name pattern' at character position
- Pointcut is not well-formed: expecting 'name pattern' at character position 36
- Pointcut is not well-formed: expecting 'name pattern' at character position
- Pointcut is not well-formed: expecting 'name pattern' at character position
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at charac
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’
- Pointcut is not well-formed: expecting 'name pattern' at character position
- 坑之Pointcut is not well-formed: expecting 'name pattern' at character position异常
- Pointcut is not well-formed: expecting 'name pattern' at character position