Commit 03f8b6c36d3ec3e2bd59cd460149ea1837a853ee
1 parent
b938e5b5
测试环境配置
Showing
2 changed files
with
52 additions
and
14 deletions
class-service.yml
| ... | ... | @@ -7,32 +7,26 @@ spring: |
| 7 | 7 | config: |
| 8 | 8 | discovery: |
| 9 | 9 | enabled: true |
| 10 | - datasource: | |
| 11 | - name: eaas_core | |
| 12 | - url: jdbc:mysql://emysql3:3306/eaas_core?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull | |
| 13 | - username: test | |
| 14 | - password: 123456 | |
| 15 | - driver-class-name: com.mysql.jdbc.Driver | |
| 16 | - | |
| 10 | + | |
| 17 | 11 | coreDatasource: |
| 18 | 12 | write: |
| 19 | 13 | name: gxb_core |
| 20 | - url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 14 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 21 | 15 | username: test |
| 22 | 16 | password: 123456 |
| 23 | 17 | driver-class-name: com.mysql.jdbc.Driver |
| 24 | 18 | read1: |
| 25 | 19 | name: gxb_core |
| 26 | - url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 20 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 27 | 21 | username: test |
| 28 | 22 | password: 123456 |
| 29 | 23 | driver-class-name: com.mysql.jdbc.Driver |
| 30 | 24 | |
| 31 | 25 | secondDatasource: |
| 32 | 26 | 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 | |
| 27 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | |
| 28 | + username: test | |
| 29 | + password: 123456 | |
| 36 | 30 | driver-class-name: com.mysql.jdbc.Driver |
| 37 | 31 | redis: |
| 38 | 32 | database: 0 |
| ... | ... | @@ -45,7 +39,7 @@ spring: |
| 45 | 39 | max-wait: 100000 |
| 46 | 40 | sentinel: |
| 47 | 41 | master: mymaster1 |
| 48 | - nodes: redis1:16379,redis2:16379 | |
| 42 | + nodes: redis-server:16379,redis-server:16379 | |
| 49 | 43 | |
| 50 | 44 | mybatis: |
| 51 | 45 | mapperLocations: classpath:/mybatis/*.xml |
| ... | ... | @@ -91,6 +85,38 @@ spring: |
| 91 | 85 | username: test |
| 92 | 86 | password: 123456 |
| 93 | 87 | driver-class-name: com.mysql.jdbc.Driver |
| 88 | + coreDatasource: | |
| 89 | + write: | |
| 90 | + name: gxb_core | |
| 91 | + url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 92 | + username: test | |
| 93 | + password: 123456 | |
| 94 | + driver-class-name: com.mysql.jdbc.Driver | |
| 95 | + read1: | |
| 96 | + name: gxb_core | |
| 97 | + url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | |
| 98 | + username: test | |
| 99 | + password: 123456 | |
| 100 | + driver-class-name: com.mysql.jdbc.Driver | |
| 101 | + | |
| 102 | + secondDatasource: | |
| 103 | + name: gxb_core | |
| 104 | + url: jdbc:mysql://101.200.173.244:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | |
| 105 | + username: rd | |
| 106 | + password: 0Crofg6WIDslONnmqgQLWv14Ekb6028G | |
| 107 | + driver-class-name: com.mysql.jdbc.Driver | |
| 108 | + redis: | |
| 109 | + database: 0 | |
| 110 | + host: redis-server | |
| 111 | + port: 6379 | |
| 112 | + pool: | |
| 113 | + max-idle: 100 | |
| 114 | + min-idle: 10 | |
| 115 | + max-active: 1000 | |
| 116 | + max-wait: 100000 | |
| 117 | + sentinel: | |
| 118 | + master: mymaster1 | |
| 119 | + nodes: redis1:16379,redis2:16379 | |
| 94 | 120 | |
| 95 | 121 | mybatis: |
| 96 | 122 | mapperLocations: classpath:/mybatis/*.xml | ... | ... |
user-service.yml
| ... | ... | @@ -9,7 +9,7 @@ spring: |
| 9 | 9 | enabled: true |
| 10 | 10 | datasource: |
| 11 | 11 | name: gxb_core |
| 12 | - url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull | |
| 12 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull | |
| 13 | 13 | username: test |
| 14 | 14 | password: 123456 |
| 15 | 15 | driver-class-name: com.mysql.jdbc.Driver |
| ... | ... | @@ -61,6 +61,18 @@ spring: |
| 61 | 61 | username: test |
| 62 | 62 | password: 123456 |
| 63 | 63 | driver-class-name: com.mysql.jdbc.Driver |
| 64 | + redis: | |
| 65 | + database: 0 | |
| 66 | + host: redis-server | |
| 67 | + port: 6379 | |
| 68 | + pool: | |
| 69 | + max-idle: 100 | |
| 70 | + min-idle: 10 | |
| 71 | + max-active: 1000 | |
| 72 | + max-wait: 100000 | |
| 73 | + sentinel: | |
| 74 | + master: mymaster1 | |
| 75 | + nodes: redis-server:16379,redis-server:16379 | |
| 64 | 76 | |
| 65 | 77 | mybatis: |
| 66 | 78 | mapperLocations: classpath:/mybatis/*.xml | ... | ... |