[英]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.