<aop:config>
<!--<aop:advisor id="usermanagertx" advice-ref="usermanagertxadvice" pointcut="execution(* *..service.usermanager.*(..))" order="0"/>-->
<!--<aop:advisor id="usermanagersecurity" advice-ref="usersecurityadvice" pointcut="execution(* *..service.usermanager.saveuser(..))" order="1"/>-->
<aop:advisor id="managertx" advice-ref="txadvice" pointcut="execution(* *..service.*manager.*(..)) || execution(* *..service.*service.*(..))" order="0"/>
</aop:config>
<tx:advice id="txadvice">
<tx:attributes>
<tx:method name="get*" propagation="supports" read-only="true"/>
<tx:method name="save*" propagation="required"/>
<tx:method name="update*" propagation="required"/>
<tx:method name="remove*" propagation="required"/>
<tx:method name="*" propagation="supports"/>
</tx:attributes>
</tx:advice>
<!-- transaction manager for a single jdbc datasource -->
<bean id="transactionmanager" class="org.springframework.jdbc.datasource.datasourcetransactionmanager">
<property name="datasource" ref="datasource"/>
</bean>
闽公网安备 35060202000074号