0eaaf55d 陈志杭(后端)

删除没有使用的数据源

1 个父辈 ef395fb5
......@@ -15,27 +15,27 @@
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.2.xsd">
<!-- mybatis文件配置,扫描所有mapper文件 -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"
p:dataSource-ref="dynamicDataSource" p:configLocation="classpath:mybatis-config.xml"
p:mapperLocations="classpath:mapper/*.xml"/><!-- configLocation为mybatis属性
mapperLocations为所有mapper -->
<!-- spring与mybatis整合配置,扫描所有dao -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"
p:basePackage="com.sibu.orderHelper.base.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"
p:basePackage="com.sibu.orderHelper.integral.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"
p:basePackage="com.sibu.orderHelper.hotel.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>
<!-- 对数据源进行事务管理 -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
p:dataSource-ref="dynamicDataSource"/>
<!-- 事务注解驱动,标注@Transactional的类和方法将具有事务性 -->
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" mode="proxy"/>
<!--&lt;!&ndash; mybatis文件配置,扫描所有mapper文件 &ndash;&gt;-->
<!--<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"-->
<!--p:dataSource-ref="dynamicDataSource" p:configLocation="classpath:mybatis-config.xml"-->
<!--p:mapperLocations="classpath:mapper/*.xml"/>&lt;!&ndash; configLocation为mybatis属性-->
<!--mapperLocations为所有mapper &ndash;&gt;-->
<!--&lt;!&ndash; spring与mybatis整合配置,扫描所有dao &ndash;&gt;-->
<!--<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"-->
<!--p:basePackage="com.sibu.orderHelper.base.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>-->
<!--<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"-->
<!--p:basePackage="com.sibu.orderHelper.integral.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>-->
<!--<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"-->
<!--p:basePackage="com.sibu.orderHelper.hotel.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>-->
<!--&lt;!&ndash; 对数据源进行事务管理 &ndash;&gt;-->
<!--<bean id="transactionManager"-->
<!--class="org.springframework.jdbc.datasource.DataSourceTransactionManager"-->
<!--p:dataSource-ref="dynamicDataSource"/>-->
<!--&lt;!&ndash; 事务注解驱动,标注@Transactional的类和方法将具有事务性 &ndash;&gt;-->
<!--<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" mode="proxy"/>-->
......