java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at charac
来源:互联网 发布:中国古代星象学 知乎 编辑:程序博客网 时间:2024/05/21 09:56
很郁闷的错误,终于解决了:
<aop:config>
<aop:aspect ref="log">
<aop:pointcut id="aopTest" expression="execution(*com.gc.action.HelloWorldActionDAO.*(..))"/>
<aop:around method="around" pointcut-ref="aopTest"/>
</aop:aspect>
</aop:config>
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMapping' defined in ServletContext resource [/WEB-INF/spring-servlet.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': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [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 47
execution(*com.gc.action.HelloWorldActionDAO.*(..))
^
修改:
<aop:config>
<aop:aspect ref="log">
<aop:pointcut id="aopTest" expression="execution(* com.gc.action.HelloWorldActionDAO.*(..))"/>
<aop:around method="around" pointcut-ref="aopTest"/>
</aop:aspect>
</aop:config>
在*后面加一个空格,则解决问题,不错不知道啊,望大家能注意啊。
- 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’
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting '(' at character position
- Pointcut is malformed: Pointcut is not well-formed: expecting 'name pattern' at character position 5
- 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 36
- 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
- Pointcut is not well-formed: expecting 'name pattern' at character position
- 配置aop报错: Pointcut is not well-formed: expecting 'name pattern' at character position
- 配置AOP出错: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
- spring aop 报错Pointcut is not well-formed: expecting ‘name pattern’ at character position 48 executi
- AOP注解异常: Pointcut is not well-formed: expecting '(' at character position 0 pointCut ^ 1
- (转)监听TextView中链接文本的点击事件
- Opencv同时调用两个摄像头
- phpmailer 使用案例
- 未来应用专注于html5商业应用
- sql server 查询所有表的行数记录
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at charac
- 使用spring boot搭建druid
- HIVE创建索引
- 浅谈移动设备手势密码组件的canvas实现
- TensorFlow 安装详解
- Android EditText 禁止换行
- android 应用组件[通用 Intent---撰写带有可选附件的电子邮件] 十
- C++ 类基础知识
- .net json处理 ,及处理方法