-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-client.yml
38 lines (34 loc) · 1015 Bytes
/
config-client.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# springcloud-config-client-3355 客户端配置文件
spring:
profiles:
active: dev
---
# 开发环境
server:
port: 8201
# spring的配置
spring:
profiles: dev
application:
name: springcloud-provider-dept
# Eureka的配置,服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka,http://eureka7003.com:7003/eureka # 使用集群注册
#defaultZone: http://localhost:7001/eureka,http://localhost:7002/eureka,http://localhost:7003/eureka
---
# 测试环境
server:
port: 8202
# spring的配置
spring:
profiles: test
application:
name: springcloud-provider-dept
# Eureka的配置,服务注册到哪里
eureka:
client:
service-url:
defaultZone: http://eureka7001.com:7001/eureka/,http://eureka7002.com:7002/eureka,http://eureka7003.com:7003/eureka # 使用集群注册
#defaultZone: http://localhost:7001/eureka,http://localhost:7002/eureka,http://localhost:7003/eureka