🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 路由配置 在`spring cloud gateway`中配置`uri`有三种方式,包括 * websocket配置方式 ~~~ spring: cloud: gateway: routes: - id: hmall-api uri: ws://localhost:9090/ predicates: - Path=/api/** ~~~ * http地址配置方式 ~~~ spring: cloud: gateway: routes: - id: hmall-api uri: http://localhost:9090/ predicates: - Path=/api/** ~~~ * 注册中心配置方式 ~~~ spring: cloud: gateway: routes: - id: hmall-api uri: lb://hmall-api predicates: - Path=/api/** ~~~