读书人

spring剖面配置

发布时间: 2012-09-02 21:00:34 作者: rapoo

spring切面配置

<aop:config proxy-target-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>

?

?

对接口中的上述方法进行事务管理

读书人网 >软件架构设计

热点推荐