Springboot Drill ----- Maven muti module and Eureka client

1. Create maven muti parent module

Springboot Drill ----- Maven muti module and Eureka client_第1张图片

Springboot Drill ----- Maven muti module and Eureka client_第2张图片

2. Create gate module

Springboot Drill ----- Maven muti module and Eureka client_第3张图片

Springboot Drill ----- Maven muti module and Eureka client_第4张图片

3.Configuration parent pom.xml

Springboot Drill ----- Maven muti module and Eureka client_第5张图片

4. Configuration gate pom.xml , application.yml  and logback.xml

Springboot Drill ----- Maven muti module and Eureka client_第6张图片

Springboot Drill ----- Maven muti module and Eureka client_第7张图片

Springboot Drill ----- Maven muti module and Eureka client_第8张图片

5. Start project and registation to eureka

Springboot Drill ----- Maven muti module and Eureka client_第9张图片

Springboot Drill ----- Maven muti module and Eureka client_第10张图片

6. Upload github  (https://github.com/juniflloor/gate)

Springboot Drill ----- Maven muti module and Eureka client_第11张图片

7. Refer

Please remeber this picture

Eureka server dont' configuration context-path, only this application.yml defaultZone  is same url.

Springboot Drill ----- Maven muti module and Eureka client_第12张图片

你可能感兴趣的:(spring)