[英]read value from property file inside xpath
Below First part is my code, i have to read my substring logic from xpath.But I dont want the above code to be in my camel context insead i want to read from property file, i wish i could do something like below in second part where substring logic is a key in property file. 在第一部分下面是我的代码,我必须从xpath中读取我的子字符串逻辑。但是我不希望上面的代码在我想从属性文件中读取的骆驼上下文中,我希望我可以在第二部分中做以下类似的事情其中子字符串逻辑是属性文件中的键。 I am loading my property file from BrigePropertyPlaceholder by Spring.
我要在Spring之前从BrigePropertyPlaceholder加载我的属性文件。
<xpath>starts-with(substring-after((/*/FullName/text()), 'Mr.'), "Xyz")
</xpath>
<camelContext> ....
<xpath>{properties:substringlogic}</xpath>
</camelContext>
Try with 试试看
<xpath>{{substringlogic}}</xpath>
See more details in the Camel docs: http://camel.apache.org/using-propertyplaceholder.html 在Camel文档中查看更多详细信息: http : //camel.apache.org/using-propertyplaceholder.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.