Commit 03f8b6c36d3ec3e2bd59cd460149ea1837a853ee
1 parent
b938e5b5
测试环境配置
Showing
2 changed files
with
52 additions
and
14 deletions
class-service.yml
| @@ -7,32 +7,26 @@ spring: | @@ -7,32 +7,26 @@ spring: | ||
| 7 | config: | 7 | config: |
| 8 | discovery: | 8 | discovery: |
| 9 | enabled: true | 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 | coreDatasource: | 11 | coreDatasource: |
| 18 | write: | 12 | write: |
| 19 | name: gxb_core | 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 | username: test | 15 | username: test |
| 22 | password: 123456 | 16 | password: 123456 |
| 23 | driver-class-name: com.mysql.jdbc.Driver | 17 | driver-class-name: com.mysql.jdbc.Driver |
| 24 | read1: | 18 | read1: |
| 25 | name: gxb_core | 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 | username: test | 21 | username: test |
| 28 | password: 123456 | 22 | password: 123456 |
| 29 | driver-class-name: com.mysql.jdbc.Driver | 23 | driver-class-name: com.mysql.jdbc.Driver |
| 30 | 24 | ||
| 31 | secondDatasource: | 25 | secondDatasource: |
| 32 | name: gxb_core | 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 | driver-class-name: com.mysql.jdbc.Driver | 30 | driver-class-name: com.mysql.jdbc.Driver |
| 37 | redis: | 31 | redis: |
| 38 | database: 0 | 32 | database: 0 |
| @@ -45,7 +39,7 @@ spring: | @@ -45,7 +39,7 @@ spring: | ||
| 45 | max-wait: 100000 | 39 | max-wait: 100000 |
| 46 | sentinel: | 40 | sentinel: |
| 47 | master: mymaster1 | 41 | master: mymaster1 |
| 48 | - nodes: redis1:16379,redis2:16379 | 42 | + nodes: redis-server:16379,redis-server:16379 |
| 49 | 43 | ||
| 50 | mybatis: | 44 | mybatis: |
| 51 | mapperLocations: classpath:/mybatis/*.xml | 45 | mapperLocations: classpath:/mybatis/*.xml |
| @@ -91,6 +85,38 @@ spring: | @@ -91,6 +85,38 @@ spring: | ||
| 91 | username: test | 85 | username: test |
| 92 | password: 123456 | 86 | password: 123456 |
| 93 | driver-class-name: com.mysql.jdbc.Driver | 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 | mybatis: | 121 | mybatis: |
| 96 | mapperLocations: classpath:/mybatis/*.xml | 122 | mapperLocations: classpath:/mybatis/*.xml |
user-service.yml
| @@ -9,7 +9,7 @@ spring: | @@ -9,7 +9,7 @@ spring: | ||
| 9 | enabled: true | 9 | enabled: true |
| 10 | datasource: | 10 | datasource: |
| 11 | name: gxb_core | 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 | username: test | 13 | username: test |
| 14 | password: 123456 | 14 | password: 123456 |
| 15 | driver-class-name: com.mysql.jdbc.Driver | 15 | driver-class-name: com.mysql.jdbc.Driver |
| @@ -61,6 +61,18 @@ spring: | @@ -61,6 +61,18 @@ spring: | ||
| 61 | username: test | 61 | username: test |
| 62 | password: 123456 | 62 | password: 123456 |
| 63 | driver-class-name: com.mysql.jdbc.Driver | 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 | mybatis: | 77 | mybatis: |
| 66 | mapperLocations: classpath:/mybatis/*.xml | 78 | mapperLocations: classpath:/mybatis/*.xml |