对于异常增强错误的处理 error at ::0 formal unbound in pointcut

<bean id="ServiceAdvice" class="cn.bdqn.ioc.advice.ServiceAdvice">bean>
      <aop:config>
      <aop:pointcut expression="execution(* cn.bdqn.ioc.impl.*.*(..))" id="pointcut2"/>
      <aop:aspect ref="ServiceAdvice">
      <aop:after-throwing method="afterthrowing" pointcut-ref="pointcut2" />
      
      <aop:after method="after" pointcut-ref="pointcut2" />
      aop:aspect>
      aop:config> 

这个错误是因为参数未输入导致,缺少关键的抛出异常throwing=”e”

      method="afterthrowing" pointcut-ref="pointcut2" throwing="e"/>

你可能感兴趣的:(对于异常增强错误的处理 error at ::0 formal unbound in pointcut)