当前位置:网站首页>Take you hand in hand to build Eureka server with idea

Take you hand in hand to build Eureka server with idea

2022-07-07 23:37:00 Rain fish in summer


Preface

At present, micro services have become the mainstream , In microservice , Must have a registration center , Such as eureka, This article will take you by hand idea structure eureka The server .


One 、eureka What is it? ?

eureka The registration center , Manage various service functions , For example, service registration 、 Discovery, etc .

Two 、 Specific operation steps

1. newly build eureka modular

As shown in the figure below ,
 Insert picture description here
 Insert picture description here
 Insert picture description here
Name the module ,eureka, This module serves as eureka The server ,
 Insert picture description here

2. Modify the configuration file

Introduce modules  Insert picture description here
Actually eureka by cloud One of the components in , So let's put cloud introduce
 Insert picture description here
Then introduce the key eureka
 Insert picture description here
General configuration , At the same time, the startup class is annotated
 Insert picture description here

3. Run the project

Is it fragrant services Start in panel eureka

 Insert picture description here
Access in a browser , as follows , success
 Insert picture description here

summary

Follow the above steps , You must have learned to use idea structure maveneureka The server . If you have read this article , Be a good person and praise , It's not easy to write , If the article is flawed , Please write a comment , Make a friend and give a compliment .

原网站

版权声明
本文为[Rain fish in summer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130557396029.html