首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

spring剖面配置

2012-09-02 
spring切面配置aop:config proxy-target-advice-reftxAdvice/??? /aop:config?对com.iman包下所有

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>

?

?

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

热点排行