你有想过为什么springcloud gate的spring.cloud.gateway.routes.uri为什么前面要加lb:吗?

spring:
cloud:
gateway:
routes: #路由配置
uri: lb://provider #目标路径

看下图就一目了然了

 org.springframework.cloud.gateway.discovery.DiscoveryLocatorProperties

原文地址:https://www.cnblogs.com/mkl34367803/p/13783296.html