Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java https配置camel-config.xml_Java_Apache Camel - Fatal编程技术网

Java https配置camel-config.xml

Java https配置camel-config.xml,java,apache-camel,Java,Apache Camel,我使用的是在http协议中运行良好的camel servlet no-spring应用程序。如何将“to”设置为https Mycamel config.xml <routes xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="servlet:///service?matchOnUriPrefix=true"/> <loadBalance>

我使用的是在http协议中运行良好的camel servlet no-spring应用程序。如何将“to”设置为https

Mycamel 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>

java.lang.Exception
我想要

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

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

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

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

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

<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="https://localhost:8082/cdc/services?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>
   </loadBalance> 
  </route>
</routes>
我想5月443号港口。像

https://yourhost:443/
我想5月443号港口。像

https://yourhost:443/
我想5月443号港口。像

https://yourhost:443/
我想5月443号港口。像

https://yourhost:443/