2021
10-12
10-12
springcloud gateway如何实现路由和负载均衡
简介:gateway主要是做路由负载,过滤主要是替代zuul1.x性能比zuul好zuul是基于Servlet,gateway是基于spring-webflux用的netty+reactoryml文件实现路由负载的配置亲自测试spring:application:name:xgyx_gatewaycloud:discovery:locator:enabled:truegateway:routes:-id:a#随便定义不重复就好uri:lb://xgyx-welfareservice-x#服务名称predicate...
继续阅读 >