我有一个eureka服务器,并且运行良好,正在尝试向eureka服务器注册我的配置客户端应用程序,但无法向eureka服务器注册实例。
在application.yml中配置客户端配置
eureka:
client:
fetch-registry: true
serviceUrl:
defaultZone: http://localhost:8761/eureka/
Eureka服务器配置-application.yml
server:
port: ${PORT:8761}
eureka:
client:
registerWithEureka: false
fetchRegistry: false
server:
waitTimeInMsWhenSyncEmpty: 0
Eureka服务器配置-bootstrap.yml
spring:
application:
name: eureka
cloud:
config:
uri: ${CONFIG_SERVER_URL:http://localhost:9898}