方法一
<camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
<propertyPlaceholder id="properties" location="file:e:/tmp/http.cfg" />
<route>
<from uri="direct://start1" />
<log message="java.runtime.version : {{java.runtime.version}}" />
<log message="this is http.address : {{http.address}}" />
<log message="this is http.context.path : {{http.context.path}}" />
</route>
</camelContext>
方法二
<bean id="properties" class="org.apache.camel.component.properties.PropertiesComponent">
<property name="location" value="file:e:/tmp/http.cfg"/>
</bean>