删除没有使用的数据源
正在显示
1 个修改的文件
包含
21 行增加
和
21 行删除
| ... | @@ -15,27 +15,27 @@ | ... | @@ -15,27 +15,27 @@ |
| 15 | http://www.springframework.org/schema/util | 15 | http://www.springframework.org/schema/util |
| 16 | http://www.springframework.org/schema/util/spring-util-3.2.xsd"> | 16 | http://www.springframework.org/schema/util/spring-util-3.2.xsd"> |
| 17 | 17 | ||
| 18 | <!-- mybatis文件配置,扫描所有mapper文件 --> | 18 | <!--<!– mybatis文件配置,扫描所有mapper文件 –>--> |
| 19 | <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean" | 19 | <!--<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"--> |
| 20 | p:dataSource-ref="dynamicDataSource" p:configLocation="classpath:mybatis-config.xml" | 20 | <!--p:dataSource-ref="dynamicDataSource" p:configLocation="classpath:mybatis-config.xml"--> |
| 21 | p:mapperLocations="classpath:mapper/*.xml"/><!-- configLocation为mybatis属性 | 21 | <!--p:mapperLocations="classpath:mapper/*.xml"/><!– configLocation为mybatis属性--> |
| 22 | mapperLocations为所有mapper --> | 22 | <!--mapperLocations为所有mapper –>--> |
| 23 | 23 | ||
| 24 | <!-- spring与mybatis整合配置,扫描所有dao --> | 24 | <!--<!– spring与mybatis整合配置,扫描所有dao –>--> |
| 25 | <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer" | 25 | <!--<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"--> |
| 26 | p:basePackage="com.sibu.orderHelper.base.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/> | 26 | <!--p:basePackage="com.sibu.orderHelper.base.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>--> |
| 27 | <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer" | 27 | <!--<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"--> |
| 28 | p:basePackage="com.sibu.orderHelper.integral.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/> | 28 | <!--p:basePackage="com.sibu.orderHelper.integral.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>--> |
| 29 | <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer" | 29 | <!--<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"--> |
| 30 | p:basePackage="com.sibu.orderHelper.hotel.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/> | 30 | <!--p:basePackage="com.sibu.orderHelper.hotel.dao" p:sqlSessionFactoryBeanName="sqlSessionFactory"/>--> |
| 31 | 31 | ||
| 32 | <!-- 对数据源进行事务管理 --> | 32 | <!--<!– 对数据源进行事务管理 –>--> |
| 33 | <bean id="transactionManager" | 33 | <!--<bean id="transactionManager"--> |
| 34 | class="org.springframework.jdbc.datasource.DataSourceTransactionManager" | 34 | <!--class="org.springframework.jdbc.datasource.DataSourceTransactionManager"--> |
| 35 | p:dataSource-ref="dynamicDataSource"/> | 35 | <!--p:dataSource-ref="dynamicDataSource"/>--> |
| 36 | 36 | ||
| 37 | <!-- 事务注解驱动,标注@Transactional的类和方法将具有事务性 --> | 37 | <!--<!– 事务注解驱动,标注@Transactional的类和方法将具有事务性 –>--> |
| 38 | <tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" mode="proxy"/> | 38 | <!--<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" mode="proxy"/>--> |
| 39 | 39 | ||
| 40 | 40 | ||
| 41 | 41 | ... | ... |
-
请 注册 或 登录 后发表评论