gpt4 book ai didi

java - https配置camel-config.xml

转载 作者:行者123 更新时间:2023-12-01 23:23:27 26 4
gpt4 key购买 nike

我正在使用camel-servlet-no-spring应用程序,该应用程序在http协议(protocol)中运行良好。如何将“to”设置为 https。

我的camel-config.xml

<routes xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="servlet:///service?matchOnUriPrefix=true"/>
<loadBalance>
<failover>
<exception>java.lang.Exception</exception>
</failover>
<to uri="http://localhost:8082/cdc/services?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>
</loadBalance>
</route>
</routes>

我想要

<to uri="https://localhost:8082/cdc/services?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>

最佳答案

您可以根据需要更新 uri。不知道你遇到了什么问题。

关于java - https配置camel-config.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20349945/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com