[英]Unable to register services to the discovery server (EUREKA)
您必須在pom.xml
添加此依賴項,這將為您的服務提供一個保持pom.xml
的理由:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
此外,我認為您應該重構Eureka默認區域部分的application.properties
文件,如下所示:
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
eureka.instance.preferIpAddress=true
eureka.client.registerWithEureka=true
eureka.client.fetchRegistry=true
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.