Spring Cloud - Eurkea 搭建服务注册中心

搭建Eureka服务注册中心

环境:

java:1.8

IDE:Intellij 2020.1.2

 

分步截图

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

配置文件

spring.application.name=eureka-server
server.port=8761
# 由于该应用为注册中心, 所以设置为false, 代表不向注册中心注册自己
eureka.client.register-with-eureka=false
# 由于注册中心的职责就是维护服务实例, 它并不需要去检索服务, 所以也设置为 false
eureka.client.fetch-registry=false

 

 

运行WEB页:http://localhost:8761/

 

posted @ 2020-06-24 10:30  delafqm  阅读(118)  评论(0编辑  收藏  举报