Skip to content

Commit

Permalink
SpringBoot+Mybatis 的最佳实践
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailclimb committed Dec 3, 2018
1 parent 198dc94 commit fd77210
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
@@ -1,7 +1,7 @@
server.port=8335
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/erp?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=153963
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver


Expand Up @@ -2,10 +2,10 @@ server.port=8335
# 配置第一个数据源
spring.datasource.hikari.db1.jdbc-url=jdbc:mysql://127.0.0.1:3306/erp?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8
spring.datasource.hikari.db1.username=root
spring.datasource.hikari.db1.password=153963
spring.datasource.hikari.db1.password=root
spring.datasource.hikari.db1.driver-class-name=com.mysql.cj.jdbc.Driver
# 配置第二个数据源
spring.datasource.hikari.db2.jdbc-url=jdbc:mysql://127.0.0.1:3306/erp2?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8
spring.datasource.hikari.db2.username=root
spring.datasource.hikari.db2.password=153963
spring.datasource.hikari.db2.password=root
spring.datasource.hikari.db2.driver-class-name=com.mysql.cj.jdbc.Driver
@@ -1,7 +1,7 @@
server.port=8334
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/erp?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=153963
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

mybatis.mapper-locations=classpath:mapper/*.xml

0 comments on commit fd77210

Please sign in to comment.