Commit f4476f1d authored by XCQi's avatar XCQi

添加配置

parent d7a6c760
...@@ -25,6 +25,11 @@ ...@@ -25,6 +25,11 @@
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
......
spring.application.name=spring-cloud-eureka spring.application.name=spring-cloud-eureka
server.port=8000 server.port=8761
# 是否从其他的服务中心同步服务列表
eureka.client.fetch-registry=false eureka.client.fetch-registry=false
# 是否把自己作为服务注册到其他服务注册中心
eureka.client.register-with-eureka=false eureka.client.register-with-eureka=false
eureka.instance.hostname=localhost
# Eureka默认的服务地址空间信息配置
eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:${server.port}/eureka/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment