阅读背景:

spring--事务(Transaction)

来源:互联网 
导包
xmlns:tx="https://www.springframework.org/schema/tx"
xsi:schemaLocation="https://www.springframework.org/schema/tx https://www.springframework.org/schema/tx/spring-tx-3.0.xsd"

<!--配置事务管理器-->
<bean id="dataSourceTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="dataSource"></property>
</bean>

<!--启用事务注解-->
<tx:annotation-driven transaction-manager="dataSourceTransactionManager"/>导包
xmlns:tx="https://www.springframework.



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: