262.6. 定义位置

PropertiesResolver 需要知道在什么位置解析属性。您可以将 1 定义为多个位置。如果您在一个 String 属性中定义位置,您可以使用逗号分隔多个位置,例如:

pc.setLocation("com/mycompany/myprop.properties,com/mycompany/other.properties");

可从 Camel 2.19.0 开始

您可以通过设置 optional 属性(默认为 false)设置可以丢弃哪些位置,即:

pc.setLocations(
    "com/mycompany/override.properties;optional=true"
    "com/mycompany/defaults.properties");