Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 使用属性填充Camel route removeHeaders模式属性_Spring_Apache Camel_Properties File - Fatal编程技术网

Spring 使用属性填充Camel route removeHeaders模式属性

Spring 使用属性填充Camel route removeHeaders模式属性,spring,apache-camel,properties-file,Spring,Apache Camel,Properties File,我在xml DSL中定义了一个驼峰路线,其中包含一个元素,我在其中指定了一个正则表达式模式,例如(为了简洁起见,简化了模式)。我想将模式字符串从xml中移出并放入属性文件中,然后通过PropertyPlaceHolderConfigure机制(如)读入该字符串,因为我对多个路由使用相同的模式字符串。但是,属性值被视为文字字符串,而不是被替换。有没有办法让这一切顺利进行?也许我只是缺少了一些东西?请参阅有关在Camel中使用属性的说明。根据我的理解,我们将属性用于 ${property\u na

我在xml DSL中定义了一个驼峰路线,其中包含一个
元素,我在其中指定了一个正则表达式模式,例如
(为了简洁起见,简化了模式)。我想将模式字符串从xml中移出并放入属性文件中,然后通过PropertyPlaceHolderConfigure机制(如
)读入该字符串,因为我对多个路由使用相同的模式字符串。但是,属性值被视为文字字符串,而不是被替换。有没有办法让这一切顺利进行?也许我只是缺少了一些东西?

请参阅有关在Camel中使用属性的说明。根据我的理解,我们将属性用于

  • ${property\u name}
    占位符(如果在camel上下文之外使用)
  • {{property\u name}}
    在驼峰上下文中
另外,请注意,从Camel 2.9开始,我们提供了在加载属性时使用
prefixToken
subfixtoken
参数更改这些占位符的规定。

请参阅Camel中使用属性的说明。根据我的理解,我们将属性用于

  • ${property\u name}
    占位符(如果在camel上下文之外使用)
  • {{property\u name}}
    在驼峰上下文中
另外,请注意,从Camel 2.9开始,我们提供了在加载属性时使用
prefixToken
subfixtoken
参数更改这些占位符的规定