<aop:config>
<!-- 声明一个切面 -->
<aop:aspect id="testAspect" ref="serviceAspect">
<!-- 配置一个切入点 -->
<aop:pointcut expression="execution(* com.skss.portal.service..*(..))" id="myPointcut"/>
<!-- 配置通知 -->
<aop:before pointcut-ref="myPointcut" method="before"/>
<aop:after pointcut-ref="myPointcut" method="after"/>
<aop:after-throwing pointcut-ref="myPointcut" method="afterThrowing"/>
</aop:aspect>
</aop:config>
<!-- 声明一个切面 -->
<aop:aspect id="testAspect" ref="serviceAspect">
<!-- 配置一个切入点 -->
<aop:pointcut expression="execution(* com.skss.portal.service..*(..))" id="myPointcut"/>
<!-- 配置通知 -->
<aop:before pointcut-ref="myPointcut" method="before"/>
<aop:after pointcut-ref="myPointcut" method="after"/>
<aop:after-throwing pointcut-ref="myPointcut" method="afterThrowing"/>
</aop:aspect>
</aop:config>