Micro Services --SpringCloud (Eureka registration center set up)

IDE: IDEA, to be honest, I really do not like to use the Eclipse IDE, too much exercise people

Configuration Mode: Grandle

Micro Services Framework: SpringCloud

Spring Initializr first step in creating a project

 

 

Step Two: Set basic project configuration, you can choose gradle, you can choose maven

 

 Step Three: Select the desired dependence

The first step needs to build eureka, eureka so choose depends

 

 

Step 4: Make sure to use Gradle configuration items

 

 

The fifth step, waiting for the automatic download IDEA dependent resources

 

 

 Step 6: Configuring properties

 

 

Seventh step: to add classes start spring cloud comment

 

operation result:

 

 

 

Guess you like

Origin www.cnblogs.com/yinxuejunfeng/p/10182633.html