第 117 章 Ref
Ref 表达式语言实际上只是一种从 Registry 中查询自定义 Expression 或 Predicate 的方式。
这在 XML DSL 中特别可用。
117.1. 依赖项 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Ref 语言是 camel-core 的一部分。当在 Red Hat build of Camel Spring Boot 中使用 ref 时,请确保使用以下 Maven 依赖项来支持自动配置:
<dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-core-starter</artifactId> </dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-core-starter</artifactId>
</dependency>