我在我的应用程序中使用AOP,需要定义切入点,我是用spring配置来实现的。
<aop:aspect id="aspect" ref="loggerBean">
<aop:pointcut id="pointCut" expression="execution(public * *(..))" />
<aop:around pointcut="pointCut" method="logMethod" />
</aop:aspect>但我得到了例外
Caused by: java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting '(' at character position 0
pointCut
^我在这里做错了什么?
发布于 2015-01-16 10:35:37
考虑到你提供的信息,我有两个想法:
<aop:around pointcut-ref="pointCut" method"logMethod" />注意到切入点-ref。我相信后者是正确的,但现在无法核实。
https://stackoverflow.com/questions/27981761
复制相似问题