解决gateway uri: lb://service-user不生效,uri: http://localhost:8001生效

我这里的网关端口为8000

 对比可以发现网关uri: lb://service-user不生效

原因:

        由于lb(动态路由)是负载均衡的意思,即需要加负载均衡的依赖

 添加后重启服务,就可以访问了

猜你喜欢

转载自blog.csdn.net/crazy1013/article/details/125511098
URI