第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

這個(gè)例子中沒(méi)有用到<aop:advisor> 吧??求講解

這個(gè)例子中沒(méi)有用到

吧???求講解

正在回答

2 回答

<!-- 事務(wù)注解:開(kāi)啟注解支持-->

? ? <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true"/>

? ??

? ? <!-- 全局AOP事物,除get,list,select,query開(kāi)頭的方法外,都處在事物當(dāng)中? -->

<tx:advice id="txAdvice" transaction-manager="transactionManager">

<tx:attributes>

<tx:method name="select*" propagation="REQUIRED" read-only="true" />

<tx:method name="get*" propagation="REQUIRED" read-only="true" />

<tx:method name="list*" propagation="REQUIRED" read-only="true" />

<tx:method name="query*" propagation="REQUIRED" read-only="true" />

<tx:method name="*" propagation="REQUIRED" read-only="false" rollback-for="java.lang.Exception"/>

</tx:attributes>

</tx:advice>

<!-- 配置事務(wù)切面 到Service層 -->

<aop:config expose-proxy="true" proxy-target-class="true" >

<aop:advisor advice-ref="txAdvice" pointcut="execution(* com.xt.shop.base.service..*.*(..))"/>

</aop:config>


1 回復(fù) 有任何疑惑可以回復(fù)我~

是沒(méi)有講到,你可以參照一下這個(gè)博客里面的內(nèi)容http://tonl.iteye.com/blog/1966075;

1 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

這個(gè)例子中沒(méi)有用到<aop:advisor> 吧??求講解

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)