配置AOP出错:Pointcut is not well-formed: expecting 'name pattern' at character position
来源:互联网 发布:淘宝店铺推广方法大全 编辑:程序博客网 时间:2024/05/22 08:27
配置aop报错:原因是配置切点表达式的时候报错了,
星号后面没有加空格:
<aop:config>
<aop:pointcut id="transactionPointcut" expression="execution(* project.mybatis.service.*.*(..))" />
<aop:advisor pointcut-ref="transactionPointcut" advice-ref="omsMTransactionAdvice" />
</aop:config>
其中,切入点表达式的使用规则:
1、execution(): 表达式主体。
2、第一个*号:表示返回类型,*号表示所有的类型。
3、包名:表示需要拦截的包名,后面的两个句点表示当前包和当前包的所有子包,com.sample.service.impl包、子孙包下所有类的方法。
4、第二个*号:表示类名,*号表示所有的类。
5、*(..):最后这个星号表示方法名,*号表示所有的方法,后面括弧里面表示方法的参数,两个句点表示任何参数。
阅读全文
0 0
- 配置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 malformed: Pointcut is not well-formed: expecting 'name pattern' at character position 5
- spring aop 报错Pointcut is not well-formed: expecting ‘name pattern’ at character position 48 executi
- 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
- 坑之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 '(' 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’
- 数据结构复习之【树】
- C语言源程序的打开方式
- phpwind安装
- 数串的C++解决
- 【湿不了就是不爱了吗?做爱时的阴…
- 配置AOP出错:Pointcut is not well-formed: expecting 'name pattern' at character position
- miniblink重新开更啦
- 【关系是双人舞,两个人跳得开心才…
- Http协议
- git合并多个提交
- 【一个杀人犯的养成:无法向父母撒…
- Python实现进度条总结
- 剑指Offer—51—构建乘积数组
- 【依靠自己可以获得幸福的人生吗?…