【发布时间】:2014-10-29 08:06:03
【问题描述】:
我正在尝试从类路径中读取属性文件。
我有项目名称 - PROG,在它下面有一个名为 resources 的文件夹,其中有一个属性文件:myProp
在骆驼上下文 xml 中,我的代码是:
<propertyPlaceholder id="properties" location="classpath:PROG.resources.myProp" />
我也试过了:
<propertyPlaceholder id="properties" location="classpath:resources.myProp" />
但我得到骆驼错误:
java.io.FileNotFoundException: Properties file PROG.resources.myProp not found in classpath
有什么想法吗?
【问题讨论】:
标签: apache-camel properties-file