Commit 70852d87c4034e9ce6e36807e9c54b8dbd9a8a9c

Authored by 李献忠
1 parent 1cf4913f

修改配置文件

class-service.yml
... ... @@ -2,8 +2,7 @@ server:
2 2 port: 16100
3 3  
4 4 spring:
5   - profiles:
6   - active: development
  5 + profiles: development
7 6  
8 7 endpoints:
9 8 restart:
... ... @@ -15,7 +14,28 @@ endpoints:
15 14  
16 15 eureka:
17 16 instance:
18   - hostname: discovery
  17 + hostname: class-service
  18 + client:
  19 + registerWithEureka: true
  20 + fetchRegistry: true
  21 + serviceUrl:
  22 + defaultZone: http://discovery:15200/eureka/
  23 +---
  24 +
  25 +spring:
  26 + profiles: production
  27 +
  28 +endpoints:
  29 + restart:
  30 + enabled: true
  31 + shutdown:
  32 + enabled: true
  33 + health:
  34 + sensitive: false
  35 +
  36 +eureka:
  37 + instance:
  38 + hostname: class-service
19 39 client:
20 40 registerWithEureka: true
21 41 fetchRegistry: true
... ...
config.yml
... ... @@ -2,11 +2,37 @@ server:
2 2 port: 15100
3 3  
4 4 spring:
5   - profiles:
6   - active: development
  5 + profiles: development
  6 + cloud:
  7 + config:
  8 + server:
  9 + git:
  10 + uri: http://gitlab.gaoxiaobang.com/zygj/huike-eaas-config.git
  11 + username: xzli
  12 + password: kkb-lixzh1986
  13 +
  14 +endpoints:
  15 + restart:
  16 + enabled: true
  17 + shutdown:
  18 + enabled: true
  19 + health:
  20 + sensitive: false
  21 +
  22 +eureka:
  23 + instance:
  24 + hostname: configserver
  25 + client:
  26 + registerWithEureka: true
  27 + fetchRegistry: true
  28 + serviceUrl:
  29 + defaultZone: http://discovery:15200/eureka/
  30 +
  31 +---
  32 +
7 33  
8 34 spring:
9   - profiles: development
  35 + profiles: production
10 36 cloud:
11 37 config:
12 38 server:
... ...
discovery.yml
... ... @@ -2,8 +2,29 @@ server:
2 2 port: 15200
3 3  
4 4 spring:
5   - profiles:
6   - active: development
  5 + profiles: development
  6 +
  7 +endpoints:
  8 + restart:
  9 + enabled: true
  10 + shutdown:
  11 + enabled: true
  12 + health:
  13 + sensitive: false
  14 +
  15 +eureka:
  16 + instance:
  17 + hostname: discovery
  18 + client:
  19 + registerWithEureka: true
  20 + fetchRegistry: true
  21 + serviceUrl:
  22 + defaultZone: http://discovery:15200/eureka/
  23 +
  24 +---
  25 +
  26 +spring:
  27 + profiles: production
7 28  
8 29 endpoints:
9 30 restart:
... ...
gateway.yml
... ... @@ -2,8 +2,29 @@ server:
2 2 port: 15300
3 3  
4 4 spring:
5   - profiles:
6   - active: development
  5 + profiles: development
  6 +
  7 +endpoints:
  8 + restart:
  9 + enabled: true
  10 + shutdown:
  11 + enabled: true
  12 + health:
  13 + sensitive: false
  14 +
  15 +eureka:
  16 + instance:
  17 + hostname: gateway
  18 + client:
  19 + registerWithEureka: true
  20 + fetchRegistry: true
  21 + serviceUrl:
  22 + defaultZone: http://discovery:15200/eureka/
  23 +
  24 +---
  25 +
  26 +spring:
  27 + profiles: production
7 28  
8 29 endpoints:
9 30 restart:
... ...
user-service.yml
... ... @@ -4,6 +4,31 @@ server:
4 4 sidecar:
5 5 port: 8000
6 6  
  7 +spring:
  8 + profiles: development
  9 +
  10 +endpoints:
  11 + restart:
  12 + enabled: true
  13 + shutdown:
  14 + enabled: true
  15 + health:
  16 + sensitive: false
  17 +
  18 +eureka:
  19 + instance:
  20 + hostname: user-service
  21 + client:
  22 + registerWithEureka: true
  23 + fetchRegistry: true
  24 + serviceUrl:
  25 + defaultZone: http://discovery:8761/eureka/
  26 +
  27 +---
  28 +
  29 +spring:
  30 + profiles: production
  31 +
7 32 endpoints:
8 33 restart:
9 34 enabled: true
... ... @@ -14,7 +39,7 @@ endpoints:
14 39  
15 40 eureka:
16 41 instance:
17   - hostname: gateway
  42 + hostname: user-service
18 43 client:
19 44 registerWithEureka: true
20 45 fetchRegistry: true
... ...