NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## 路由配置 在`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/** ~~~