当前位置:网站首页>Build a service registration and Discovery Center
Build a service registration and Discovery Center
2022-04-21 12:55:00 【Monkey king??】
send ⽤Spring Cloud Netflix Medium Eureka Building service registration and discovery ⼼
establish SpringBoot Should be ⽤, Add dependency
spring web
eureka server
Configure the service registration and discovery center
## Setting service registration and discovery ⼼ End of ⼝
server:
port: 8761
## In the microservices architecture , Service registration ⼼ Is it through service ⽤ The name of each service
## After we create each service , Specifies the name of the current service Should be ⽤ name / term ⽬ name
spring:
application:
name: service-eureka
eureka:
client:
## ip Service registration ⼼ Server's ip
## port Service registration and discovery ⼼ Set up port
service-url:
defaultZone: http://192.168.54.59:8761/eureka
## Setting service registration and discovery ⼼ Whether to build a cluster ( If it is in cluster mode , Multiple eureka Between nodes
Need to register with each other )
register-with-eureka: false
## Set whether to enter as a service in service registration and discovery ⾏ register
fetch-registry: false
Add... In the startup class @EnableEurekaServer annotation
@SpringBootApplication
@EnableEurekaServer
public class ServiceEurekaApplication {
public static void main(String[] args) {
SpringApplication.run(ServiceEurekaApplication.class, args);
}
}
Operation and access
版权声明
本文为[Monkey king??]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211249519629.html
边栏推荐
- Revit secondary development - creating floors (phase 12)
- IEEE PR for paper | 202b
- The second development of Revit -- how to use lookup (phase VII)
- pytest多文件执行顺序控制
- QFileInfo文件和文件夹操作
- Creating host elements of Revit secondary development (doors and windows, etc.) (issue 14)
- 无线网络协议名词
- 通信协议英语单词解析
- Revit 二次开发——创建轴网(第九期)
- Redis - breakdown, penetration, avalanche
猜你喜欢

【源码解析】Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation

What are the problems in the digital transformation of manufacturing industry

【贪玩巴斯】带你拿雅思Task1 小作文 7+ —— Dynamic+Static图表 & Mixed多图(Table/pie chart/line graph/bar chart)2022-4-18

GSMA announced: 2022 MWC Shanghai postponed
AES自动生成base64密钥加密解密

redis-击穿、穿透、雪崩

Call for Papers | IEEE/IAPR IJCB 2022 会议

三、标签准备

业内视频超分辨率新标杆,快手&大连理工研究登上CVPR 2022

【论文学习】YOLO v2
随机推荐
2020batjz Android Senior Engineer Interview Questions - multiple choice questions collection (with answer analysis)
UGUI-- Button 按钮组件
36天突击腾讯终拿Offer! Redis、高并发
月销超千万,新防晒时代「蕉下」如何成为爆款制造机?
Mysql database operation statement exercise
三、标签准备
The second development of Revit -- how to use lookup (phase VII)
诗词学习-
L2-013 red alarm (25 points)
Select elements from Revit (issue 5)
Revit二次开发之反编译
Algorithem_Merge Two Binary Trees
Flowable activiti7 countersign
Office Word 2016 中Word自带公式编辑器编辑的公式转Mathtype出现omml2mml.xsl 问题的解决方法
挖财的证券账户怎么开户?在券商开户是不是比较安全一些?
Simulated Login of selenium's slider verification code (pig Bajie website)
How do we media create hot articles and improve reading volume
2022年监理工程师合同管理练习题及答案
L2-013 红色警报 (25 分)
Modify the name of the string through the list