Browse Source

配置了远程mysql

master
wyz 3 years ago
parent
commit
53eca42de7
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/main/resources/mybatis-config.xml

+ 10
- 1
src/main/resources/mybatis-config.xml View File

@ -24,7 +24,7 @@
<!-- 数据库配置 -->
<environments default="dev">
<environments default="master">
<environment id="dev">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
@ -34,6 +34,15 @@
<property name="password" value="100299"/>
</dataSource>
</environment>
<environment id="master">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://10.23.151.148:3306/DeliveryTakingSystem"/>
<property name="username" value="root"/>
<property name="password" value="qaz123"/>
</dataSource>
</environment>
</environments>
<!-- mapper.xml的位置

Loading…
Cancel
Save