问题描述
我正在使用Apache骆驼V2.24.3,我想检查$ {body}是否包含这2个字符串。
<choice id="ldap_response">
<when id="ldap_response_adding">
<simple>${body} contains 'adding' && 'modifying'</simple>
</when>
</choice>
此代码返回错误:
'身份名称必须紧跟在
实体参考。”
解决方法
尝试<simple>${body} contains 'adding' and ${body} contains 'modifying'</simple>