94.3. Spring Boot Auto-Configuration
当在 Spring Boot 中使用 xtokenize 时,请确保使用以下 Maven 依赖项来支持自动配置:
<dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-xml-jaxp-starter</artifactId> </dependency>
组件支持 3 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.language.xtokenize.enabled | 是否启用 xtokenize 语言的自动配置。这默认是启用的。 | 布尔值 | |
camel.language.xtokenize.mode | 提取模式。可用的提取模式有:i - 将上下文命名空间绑定注入提取的令牌(默认)w - 将提取的令牌嵌套到其祖先上下文 u - 将提取的令牌解压缩到其子内容 t - 提取指定元素的文本内容。 | 字符串 | |
camel.language.xtokenize.trim | 是否修剪值以移除前导和结尾的空格和换行符。 | true | 布尔值 |