配置AOP:pointcut时出现了异常,本人是,请大家多指点

J2EE 码拜 8年前 (2016-03-13) 1118次浏览
<aop:aspectj-autoproxy proxy-target-class="true"/>
 <aop:config>
     <aop:aspect id="TestAspect" ref="aspectTest">
         <aop:pointcut expression="excution(* com.service.*.*(..))" id="at"/>
         <aop:around method="aspect" pointcut-ref="at"/>
     </aop:aspect>     
 </aop:config>
        <bean id="test" class="com.service.impl.TestServiceImpl"></bean>
 
       <bean id="aspectTest" class="com.aspect.AspectTest"></bean>
 
    </beans>

异常信息: Pointcut is not well-formed: expecting “)” at character position 11
excution(* com.service.*.*(..))

解决方案

40

意思是说你这个切面配置的有问题吧,excution(* com.service.*.*(..))

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明配置AOP:pointcut时出现了异常,本人是,请大家多指点
喜欢 (0)
[1034331897@qq.com]
分享 (0)