springcloud zuul summary

hello-service is a service name, and test01 is an interface under the service.

When configuring the gateway:

zuul:
  routes:
#自定义(建议和服务名称一致)
    hello-service:
      path: /hello-service/**
      serviceId: hello-service

This is equivalent to configuring nothing, that is, deleting the zuul configuration above!

Access path: http: //xxx.8080/hello-service/test01

When there is no configuration, add hello-service to the access path. By default, all methods under the service are used. If configured, then follow the path to access. 

Published 23 original articles · Like 3 · Visitors 6858

Guess you like

Origin blog.csdn.net/weixin_41834814/article/details/85051377