要在 camel 路由中使用 Jackson XML,您需要对实现此数据格式的 camel-jacksonxml 添加依赖项。如果使用 maven,请将以下内容添加到 pom.xml 中,替换最新版本的版本号(请参阅最新版本的下载页面)。
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jacksonxml</artifactId>
<version>3.14.5.redhat-00018</version>
<!-- use the same version as your Camel core version -->
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jacksonxml</artifactId>
<version>3.14.5.redhat-00018</version>
<!-- use the same version as your Camel core version -->
</dependency>
Copy to ClipboardCopied!Toggle word wrapToggle overflow