在需要使用“discovery-server-url”的地方,确保已经指定并提供了有效的URL。例如,在使用Spring Cloud的应用程序中,可以使用以下代码片段来指定“discovery-server-url”:
eureka:
client:
service-url:
default-zone: http://localhost:8761/eureka/
其中,“http://localhost:8761/eureka/”就是有效的“discovery-server-url”。