Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
config-client-demo.yml 844 Bytes
Copy Edit Web IDE Raw Blame History
yuwen authored 2020-09-14 15:09 . 增加eureka-client连接配置
spring:
profiles:
active:
- dev
---
# 开发环境
server:
port: 8002
spring:
profiles: dev
application:
name: config-client-dev
config:
info: config info dev
---
# 测试环境
server:
port: 8003
spring:
profiles: test
application:
name: config-client-test
config:
info: config info test
---
# Eureka客户端配置
spring:
profiles: eureka-client
eureka:
instance:
#eureka客户端的实例名字(主机名)
hostname: config-client
client:
service-url:
#表示向注册中心注册自己
register-with-eureka: true
#表示需要去注册中心检索服务
fetch-registry: true
#与eureka server交互的地址,包括查询服务和注册服务
defaultZone: http://localhost:7001/eureka

Comment ( 0 )

Sign in for post a comment