Spring boot spring ws在Zuul代理之后

Spring boot spring ws在Zuul代理之后,spring-boot,spring-ws,netflix-zuul,Spring Boot,Spring Ws,Netflix Zuul,我有一个使用SpringWS实现WSDL的微服务(SpringBoot)。 计划是使用Zuul通过网关服务器访问WSDL 从网关访问:http//192.168.1.5:8080/integration/ws/test.wsdl Zuul路由在网关上配置: integration: sensitive-headers: path: /integration/** url: http://localhost:9090 返回的WSDL具有正确的端口号(8080),但主机名不正确。此外,

我有一个使用SpringWS实现WSDL的微服务(SpringBoot)。 计划是使用Zuul通过网关服务器访问WSDL

从网关访问:http//192.168.1.5:8080/integration/ws/test.wsdl

Zuul路由在网关上配置:

integration:
  sensitive-headers:
  path: /integration/**
  url: http://localhost:9090
返回的WSDL具有正确的端口号(8080),但主机名不正确。此外,不返回前缀“/集成”



即使我手动设置X-Forwarded-For头,主机名似乎也不会改变。[这是我没有Zuul的测试]。为了让SpringWS在代理后工作,我缺少了什么?我已经在Spring boot的应用程序属性中设置了remote_ip_头和protocol_头

默认情况下,Zuul在转发请求之前实际上会从请求中删除代理前缀。对于单个服务,您可以使用下面类似的
stripPrefix=false
关闭此行为。如果需要所有路由,则
zuul.stripPrefix=false

application.yml
 zuul:
  routes:
    users:
      path: /myusers/**
      stripPrefix: false
希望这能解决你的问题