使用zuul gateway调用微服务时,转发的url地址错误
默认为true,去掉前缀 ,如果不设置就会导致转发的url地址错误
zuul.routes.fungame-pay-api.stripPrefix
当stripPrefix=true,http://127.0.0.1:7081/user-api/user/find =>http://127.0.0.1:7081/user/find
stripPrefix=false,http://127.0.0.1:7081/user-api/user/find =>http://127.0.0.1:7081/user-api/user/find
gateway转发的url错误
猜你喜欢
转载自pengfeifei26.iteye.com/blog/2423003
今日推荐
周排行