gateway转发的url错误
使用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...
   ·  
 使用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
 默认为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
更多推荐
 
 




所有评论(0)