<aop:config>
<aop:pointcut id="pt" expression="execution( * cn.itcast.service.*.impl.*.*(..))"></aop:pointcut>
<aop:advisor advice-ref="txAdvice" pointcut-ref="pt"></aop:advisor>
</aop:config>
<aop:config>
<aop:pointcut id="pt" expression="bean(*ServiceImpl)"/>
<aop:advisor pointcut-ref="pt" advice-ref="txAdvice"/>
</aop:config>
同等效果