【发布时间】:2017-07-25 01:37:24
【问题描述】:
在我使用Angel.SR3之前,我可以启动发现和配置服务器,我可以在http://localhost:8761找到配置服务器。 迁移到 Brixton 版本后,相同的配置服务器属性不再起作用。 配置服务器 application.yml:
server:
port: 8099
spring:
cloud:
config:
server:
native:
search-locations: classpath:/config
bootstrap.yml
spring:
application:
name: config
eureka:
instance:
non-secure-port: ${server.port:8099}
metadata-map:
instanceId: ${spring.application.name}:${random.value}
client:
service-url:
defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/
发现服务器application.yml
server:
port: 8761
eureka:
instance:
hostname: localhost
client:
register-with-eureka: false
fetch-registry: false
谁有 Brixton 版本的可行演示?
【问题讨论】:
-
发现服务器配置application.yml
标签: spring spring-boot