gpt4 book ai didi

java - 在http :outbound endpoint in Mule中指定多个查询参数

转载 作者:行者123 更新时间:2023-11-30 04:32:53 27 4
gpt4 key购买 nike

在我的 Mule-config.xml 中,我使用 2 个查询参数向服务发送 http post...我尝试添加 2 个查询参数,如下所示:

<http:outbound-endpoint
address="http://${server.user}:${server.passwd}@${server.host}:${server.port}/DebtService/debt/sendemail?appId=#[header:SESSION:appId]&debtId=#[header:SESSION:debtId]"

但是 mule 在启动时抛出了这个错误

Caused by: org.xml.sax.SAXParseException: The reference to entity "debtId" must end with the ';' delimiter.

如果我只有一个查询参数,那么一切正常,但如果我使用“&”添加第二个查询参数,则会引发上述错误...

关于我在这里做错了什么的任何想法......提前致谢..

最佳答案

这是无效的 XML:使用 & 而不是 &

关于java - 在http :outbound endpoint in Mule中指定多个查询参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14205211/

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