在我的蓝图 xml 中,我已经设置了...
<sslContextParameters id="ssl" xmlns="http://camel.apache.org/schema/spring">
<keyManagers keyPassword="secret">
<keyStore password="supersecret" resource="c:/esb/cia_keystore.jks"/>
</keyManagers>
<trustManagers>
<keyStore password="supersecret" resource="c:/esb/cia_truststore.jks"/>
</trustManagers>
</sslContextParameters>
并希望使用此 .to 行连接到 https 服务器。
<to id="_to3" uri="netty4-http:https://somesecurehost.com:443/bla-bla-bla/?ssl=true&sslContextParameters=#ssl"/>
但是在蓝图中我得到了一个红色的 x 并且在“mvn clean install”中得到了相同的解释...
The reference to entity "sslContextParameters" must end with the ';' delimiter.
检查骆驼 netty4-http 文档 https://camel.apache.org/components/2.x/netty4-http-component.html 我在选项 sslContextParameters 和查询参数下看到我看到 SSL 和 sslContextParameters。骆驼 netty4-http 中没有提到“;”在 URI 中。
我错过了什么?
答案 0 :(得分:0)
在 XML 中,特殊字符需要适当的转义序列。因此,任何在查询字符串中包含 &
的端点 URI 都应修改为使用转义序列 &
。