<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”
<aop:after-throwing method="afterthrowing" pointcut-ref="pointcut2" throwing="e"/>