Spring+JDBCTemplate事务
<bean id="dataSource"
/></property>
</bean>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="query*" read-only="true" />
<tx:method name="update*" propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="oper1" expression="execution(* com.spdx.app.dao.AccountDAO.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="oper1" />
</aop:config>