Pointcut is not well-formed: expecting 'name pattern' at character position
来源:互联网 发布:没有sqlserver服务 编辑:程序博客网 时间:2024/05/22 03:24
Pointcut is not well-formed: expecting 'name pattern' at character position
配置aop报错:原因是配置切点表达式的时候报错了:
切点表达式配置方法:
<aop:config proxy-target-class="false">切入点表达式的使用规则:
execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) throws-pattern?)
有“?”号的部分表示可省略的,modifers-pattern表示修饰符如public、protected等,ret-type-pattern表示方法返回类型,declaring-type-pattern代表特定的类,name-pattern代表方法名称,param-pattern表示参数,throws-pattern表示抛出的异常。在切入点表达式中,可以使用*来代表任意字符,用..来表示任意个参数。
<aop:aspect ref="corletPointCutTest">
<aop:pointcut id="allRenderProcess"
expression="execution(* com.hsbc.esf.requestprocessing.portlet.impl.PortletFrontController.doRenderService(..)) || execution(* com.hsbc.esf.requestprocessing.portlet.impl.PortletFrontController.processRenderRequest(..))||execution(* com.hsbc.esf.requestprocessing.portlet.impl.PortletFrontController.doActionService(..))" />
<aop:before method="checkPorletPoint" pointcut-ref="allRenderProcess"/>
</aop:aspect>
</aop:config>
注意星号后面要有个空格
http://blog.csdn.net/wanglang3081/article/details/17164207
阅读全文
0 0
- 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
- Pointcut is not well-formed: expecting '(' at character position 0 anyMethod
- java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting '(' 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’
- POJ 3259 Wormholes (Bellman-Ford 求负环)(F)
- JSONP跨域原理浅析
- 基于jQuery实现的Ajax 验证用户名唯一性
- Android-Device supports x86,but APK only supports armeabi-v7a,armeabi,x86_64
- 英伟达深度学习实习生面试指南
- Pointcut is not well-formed: expecting 'name pattern' at character position
- zoj1094 Matrix Chain Multiplication 模拟
- 大型网站技术架构解决方案归纳
- 关于绝对路径和相对路径
- java爬虫教务信息门户(java爬虫04)
- 更改Kali Linux MAC地址
- ntp导致其他线程卡顿原因总结
- CentOS下Nginx+fastcgi+python2搭建web.py服务环境
- Freemarker中如何遍历List