注解事务
@Transactional
<!--JDBC事务管理器-->
<bean id="tansactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<constructor-arg ref="dataSource"></constructor-arg>
</bean>
<tx:annotation-driven transaction-manager="tansactionManager"></tx:annotation-driven>
By Ginfoo