spring: application: name: myclouds-gateway-consul cloud: consul: host: 127.0.0.1 port: 8500 enabled: true discovery: enabled: true register: trueserver: port: 5556zuul: routes: myadmin: #routes 1。访问路径:http://127.0.0.1:5556/test/user/get?token=1&&id=1 path: /test/** serviceId: myadmin-service management: security: enabled:falseendpoints: health: enabled:true sensitive:false metrics: enabled:true sensitive:false
4.0.0 com.gitee.myclouds myclouds-gateway 1.0 jar myclouds-gateway myclouds服务网关 UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter-parent 1.5.8.RELEASE org.springframework.cloud spring-cloud-dependencies Dalston.SR4 pom import org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-test test org.springframework.cloud spring-cloud-starter-zuul org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-web com.gitee.myclouds myclouds-toolbox 1.0 org.springframework.cloud spring-cloud-starter-consul-discovery org.springframework.boot spring-boot-maven-plugin true spring-milestones Spring Milestones https://repo.spring.io/milestone false