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
- Spring AOP 错误:Pointcut is malformed: Pointcut is not well-formed
- Pointcut is malformed: Pointcut is not well-formed: expecting 'name pattern' at character position 5
- 解决Pointcut is not well-formed
- AOP注解异常: Pointcut is not well-formed: expecting '(' at character position 0 pointCut ^ 1
- spring aop 报错Pointcut is not well-formed: expecting ‘name pattern’ at character position 48 executi
- 配置aop报错: Pointcut is not well-formed: expecting 'name pattern' at character position
- 配置AOP出错:Pointcut is not well-formed: expecting 'name pattern' at character position
- Spring错误:Pointcut is malformed: error at ::0 formal unbound...
- Pointcut is not well-formed: expecting '(' at character position 0 anyMethod
- Pointcut is not well-formed: expecting 'name pattern' at character position
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting '(' 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 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’
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at charac
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘name pattern’
- 树莓派常用软件及服务(vi、远程桌面、ssh、samba、u盘)
- 使用FileUtils简化你的文件操作
- scrollview嵌套listview的解决方法(一)
- (二叉树)谈一谈各类算法和数据结构的c++实现以及相关操作的复杂度(二)
- C语言基础
- Spring AOP 错误:Pointcut is malformed: Pointcut is not well-formed
- 167. Two Sum II
- 关于Linux启动文件rc.local的解惑
- http请求
- spring普通java工程的配置启动方式
- androidSimpleCache的详细讲解
- iOS自定义UICollectionViewLayout布局实现瀑布流
- Spring5.0.X源码阅读环境搭建Eclipse4.6.3(neon)
- PyQt简单例子: 包括ui文件生成, 代码, 打包exe