com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

后端 未结 10 1687
眼角桃花
眼角桃花 2020-12-30 19:32

I am very new to the microservices and trying to run the code from link: https://dzone.com/articles/advanced-microservices-security-with-spring-and-oa . When I simply run th

10条回答
  •  感动是毒
    2020-12-30 20:22

    If your eureka server is deployed/running without username and password use below properties.

    spring.application.name=Hello-World
    eureka.client.serviceUrl.defaultZone=http://eurekaserver:password@localhost:9100/eureka
    server.port=9200
    eureka.client.fetch-registry=true
    

    If your eureka server is deployed/running with username and password use below properties.

    spring.application.name=Hello-World
    eureka.client.serviceUrl.defaultZone=http://eurekaserverusername:eurekaserverpassword@localhost:9100/eureka
    server.port=9200
    eureka.client.fetch-registry=true
    

提交回复
热议问题