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

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

 

 

 

看下图就一目了然了

 org.springframework.cloud.gateway.discovery.DiscoveryLocatorProperties

 

posted on 2020-10-08 23:39  坚守梦想  阅读(5064)  评论(0编辑  收藏  举报