Commit a64af4faf75c955db0362e34c25cee9b48874088
1 parent
70852d87
增加user配置文件
Showing
2 changed files
with
27 additions
and
6 deletions
gateway.yml
| ... | ... | @@ -12,6 +12,15 @@ endpoints: |
| 12 | 12 | health: |
| 13 | 13 | sensitive: false |
| 14 | 14 | |
| 15 | +zuul: | |
| 16 | + routes: | |
| 17 | + users: | |
| 18 | + url: http://user-service:16100 | |
| 19 | + | |
| 20 | +ribbon: | |
| 21 | + eureka: | |
| 22 | + enabled: false | |
| 23 | + | |
| 15 | 24 | eureka: |
| 16 | 25 | instance: |
| 17 | 26 | hostname: gateway |
| ... | ... | @@ -34,6 +43,15 @@ endpoints: |
| 34 | 43 | health: |
| 35 | 44 | sensitive: false |
| 36 | 45 | |
| 46 | +zuul: | |
| 47 | + routes: | |
| 48 | + users: | |
| 49 | + url: http://user-service:16100 | |
| 50 | + | |
| 51 | +ribbon: | |
| 52 | + eureka: | |
| 53 | + enabled: false | |
| 54 | + | |
| 37 | 55 | eureka: |
| 38 | 56 | instance: |
| 39 | 57 | hostname: gateway | ... | ... |
user-service.yml
| 1 | 1 | server: |
| 2 | - port: 10000 | |
| 3 | - | |
| 4 | -sidecar: | |
| 5 | - port: 8000 | |
| 2 | + port: 16100 | |
| 6 | 3 | |
| 7 | 4 | spring: |
| 8 | 5 | profiles: development |
| 6 | + datasource: | |
| 7 | + name: gxb_core | |
| 8 | + url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull | |
| 9 | + username: test | |
| 10 | + password: 123456 | |
| 11 | + driver-class-name: com.mysql.jdbc.Driver | |
| 9 | 12 | |
| 10 | 13 | endpoints: |
| 11 | 14 | restart: |
| ... | ... | @@ -22,7 +25,7 @@ eureka: |
| 22 | 25 | registerWithEureka: true |
| 23 | 26 | fetchRegistry: true |
| 24 | 27 | serviceUrl: |
| 25 | - defaultZone: http://discovery:8761/eureka/ | |
| 28 | + defaultZone: http://discovery:15200/eureka/ | |
| 26 | 29 | |
| 27 | 30 | --- |
| 28 | 31 | |
| ... | ... | @@ -44,4 +47,4 @@ eureka: |
| 44 | 47 | registerWithEureka: true |
| 45 | 48 | fetchRegistry: true |
| 46 | 49 | serviceUrl: |
| 47 | - defaultZone: http://discovery:8761/eureka/ | |
| 48 | 50 | \ No newline at end of file |
| 51 | + defaultZone: http://discovery:15200/eureka/ | |
| 49 | 52 | \ No newline at end of file | ... | ... |