【发布时间】:2020-06-28 09:32:08
【问题描述】:
上面写着https://camel.apache.org/components/latest/eips/split-eip.html#_using_tokenizer_from_spring_xml_extensions,您可以使用 Spring DSL 中的分词器表达式使用令牌来拆分正文或 标头。
如何使用 tokenize 拆分标头(例如,我在标头中有名称为“split”字符串“A@B@C”的标头,我需要通过标记“@”拆分它)?
我想我可以这样做
<split>
<header>split</header>
<tokenize token="@"/>
<to uri="mock:result"/>
</split>
但是当我保存这段代码时,我得到一个错误
java.lang.RuntimeException:验证错误:cvc-complex-type.2.4.a: 发现以元素“tokenize”开头的无效内容。之一 '{"http://camel.apache.org/schema/spring":aop, “http://camel.apache.org/schema/spring”:聚合, "http://camel.apache.org/schema
骆驼版 2.25.1
【问题讨论】:
标签: apache-camel