90.15. 依赖项
要在 camel 路由中使用 XPath,您需要添加实施 XPath 语言的 camel-xpath 依赖项。
如果您使用 maven,您只需在 pom.xml 中添加以下内容,替换最新和最佳发行版本的版本号(请参阅最新版本的下载页面)。
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-xpath</artifactId> <version>{CamelSBProjectVersion}</version> </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-xpath</artifactId>
<version>{CamelSBProjectVersion}</version>
</dependency>