<aop:config proxy-target-class="true">
<aop:advisor pointcut="execution(* com.iman..service.*Service*.*(..))" advice-ref="txAdvice"/>
</aop:config>
对com.iman包下所有子目录下service包中的含有Service字符串的java类实现事物管理
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="create*"/>
<tx:method name="save*"/>
<tx:method name="add*"/>
<tx:method name="update*"/>
<tx:method name="modify*"/>
<tx:method name="change*"/>
<tx:method name="remove*"/>
<tx:method name="del*"/>
<tx:method name="cancel*"/>
<tx:method name="assign*"/>
<tx:method name="bluk*"/>
<tx:method name="transposeUser"/>
<tx:method name="sendSheet"/>
<tx:method name="acceptSheet"/>
<tx:method name="executeProcess"/>
<tx:method name="backProcessToLast"/>
<tx:method name="search*" read-only="true"/>
<tx:method name="is*" read-only="true"/>
<tx:method name="get*" read-only="true"/>
<tx:method name="find*" read-only="true"/>
<tx:method name="query*" read-only="true"/>
<tx:method name="load*" read-only="true"/>
<tx:method name="has*" read-only="true"/>
<tx:method name="check*" read-only="true"/>
<tx:method name="isCanAccess" read-only="true"/>
</tx:attributes>
</tx:advice>
对接口中的上述方法进行事务管理