应用程序:-Springboot Apache骆驼应用程序
我的应用程序属性中具有以下声明:-
hm.integration.output =文件:// C:/ cloud / out?fileName = $ {headers.CamelFileName}
但是,当我运行此应用程序时,应用程序上下文无法加载,因为它将$ {headers.CamelFileName}视为Spring属性,因为它以$开头。如何避免这种情况?
谢谢
拉胡尔
答案 0 :(得分:1)
请参阅“简单”中的替代语法,例如,您可以在https://github.com/apache/camel/blob/master/camel-core/src/main/docs/simple-language.adoc上使用$simple{xxx}
hm.integration.output=file://C:/cloud/out?fileName=$simple{headers.CamelFileName}