如何解决Mule HTTP代理要求双斜杠无法通过端点路由事件
我对http代理有以下配置:
<pattern:http-proxy name="xxx-service-http-proxy">
<http:inbound-endpoint address="http://localhost:8080" />
<http:outbound-endpoint host="localhost" port="8589" />
</pattern:http-proxy>
现在当我点击http:// localhost:8080 / swagger-ui.html时。我收到消息了
Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://localhost:8589swagger-ui.html
但是当我点击http:// localhost:8080 // swagger-ui.html时。一切正常(需要双斜杠)。谁能指出我犯错的地方。
Http代理的文档对此没有提及:https://docs.mulesoft.com/mule-runtime/3.5/http-proxy-pattern
解决方法
我认为出现此问题是因为根本没有附加的基本路径。
尝试将显式path参数添加到出站:
<http:outbound-endpoint host="localhost" port="8589" path="/" />
或对出站使用URL样式:
<http:outbound-endpoint address="http://localhost:8589" />
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。