<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
server:
port: 8001
servlet:
context-path: /register
spring:
application:
name: register
eureka:
instance:
hostname: localhost
client:
register-with-eureka: false
fetch-registry: false
instance-info-replication-interval-seconds: 30
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}${server.servlet.context-path}/eureka/
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |