1 <?xml version="1.0" encoding="UTF-8"?>
 2 <beans xmlns="http://www.springframework.org/schema/beans"
 3        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4        xmlns:tx="http://www.springframework.org/schema/tx"
 5        xsi:schemaLocation="http://www.springframework.org/schema/beans
 6         http://www.springframework.org/schema/beans/spring-beans.xsd
 7         http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
 8 
 9     <bean >
10         <property name="driverClass" value="com.mysql.jdbc.Driver"/>
11         <property name="jdbcUrl" value="jdbc:mysql://localhost:3306/phone"/>
12         <property name="user" value="root"/>
13         <property name="password" value="123456"/>
14     </bean>
15 
16     <bean >
17         <property name="dataSource" ref="dataSources"/>
18         <property name="mapperLocations" value="classpath:mapper/*.mapper.xml"/>
19     </bean>
20 
21     <bean >
22         <property name="dataSource" ref="dataSources"/>
23     </bean>
24     <tx:annotation-driven transaction-manager="txManager"/>
25 
26 </beans>

 



相关文章:

  • 2021-10-24
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-29
  • 2022-12-23
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-20
  • 2021-11-19
  • 2021-06-09
相关资源
相似解决方案