锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
榪欎釜閿欒鐨勫師鍥犲緢綆鍗曟槸錛?/p>
鎴戜滑鍦ㄥ畾涔夌敵鏄嶢OP鐨勬椂鍊欍傘傛病鏈夊姞杞絪chema銆?/p>
鍏蜂綋琛ㄧ幇濡備笅錛?/p>
<beans>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="get*" read-only="true"/>
<tx:method name="*" propagation="REQUIRES_NEW" rollback-for="Exception"/>
</tx:attributes>
</tx:advice>
<!-- aop浠g悊璁劇疆-->
<aop:config proxy-target-class="true">
....
</aop:config>
</beans>
榪欐椂浼氭姏鍑哄紓甯鎬笉璁?lt;TX>鏍囩銆傘傝搗鍏堣繕浠ヤ負鏄病鏈夊姞杞絁AR鍖呭憿銆傘?/p>
鍚庢潵璇籄OP鏂囨。鎵嶅彂鐜?lt;beans>涓鍔犲叆“xmlns錛歛op”鐨勫懡鍚嶇敵鏄庯紝騫跺湪“xsi錛歴chemaLocation”涓寚瀹歛op閰嶇疆鐨剆chema鐨勫湴鍧
閰嶇疆鏂囦歡濡備笅錛?/font>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="
xmlns:xsi="
xmlns:aop="
xmlns:tx="
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
榪欎簺鎵嶆槸鏈鍏抽敭鐨勫湴鏂廣傘傚悗闈㈢殑閰嶇疆涓嶅彉銆傘傘傘?/font>