Commit 71f6bf6d192ccfea3a798b68ce604ec2296c88d2

Authored by 孙宁海
2 parents 693a79ae 8df16285

Merge branch 'master' into 'master'

多数据源 读写分离配置



See merge request !5
Showing 1 changed file with 23 additions and 0 deletions
class-service.yml
... ... @@ -13,6 +13,28 @@ spring:
13 13 username: test
14 14 password: 123456
15 15 driver-class-name: com.mysql.jdbc.Driver
  16 +
  17 + coreDatasource:
  18 + write:
  19 + name: eaas_core
  20 + url: jdbc:mysql://emysql3:3306/eaas_core?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull
  21 + username: test
  22 + password: 123456
  23 + driver-class-name: com.mysql.jdbc.Driver
  24 + read1:
  25 + name: eaas_core
  26 + url: jdbc:mysql://emysql3:3306/eaas_core?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull
  27 + username: test
  28 + password: 123456
  29 + driver-class-name: com.mysql.jdbc.Driver
  30 +
  31 + secondDatasource:
  32 + name: gxb_core
  33 + url: jdbc:mysql://101.200.173.244:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8
  34 + username: rd
  35 + password: 0Crofg6WIDslONnmqgQLWv14Ekb6028G
  36 + driver-class-name: com.mysql.jdbc.Driver
  37 +
16 38 thymeleaf:
17 39 prefix: classpath:/templates/
18 40 suffix: .html
... ... @@ -20,6 +42,7 @@ spring:
20 42 encoding: UTF-8
21 43 content-type: text/html
22 44 cache: false
  45 +
23 46  
24 47 mybatis:
25 48 configLocation: classpath:mybatis-config.xml
... ...