185.3. 依赖项
要在 camel 路由中使用 Johnzon,您需要添加实现此数据格式的 camel-johnzon。
如果您使用 maven,您只能在 pom.xml 中添加以下内容,将最新的和最大发行版本的版本号替换(请参阅最新版本下载页面)。
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-johnzon</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency>