<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:tx="http://www.springframework.org/schema/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">


     <!--【E】声明式事务的管理-->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager" >

        <property name="dataSource" ref="ds"></property>

    </bean>

    <!--扫描的是@Transactional-->
    <tx:annotation-driven></tx:annotation-driven>

</beans>
