Java 使用ApacheCamel和Spring,我可以使用属性构建uri吗?
我已经创建了自己的组件,我想做一些类似的事情:Java 使用ApacheCamel和Spring,我可以使用属性构建uri吗?,java,spring,apache-camel,Java,Spring,Apache Camel,我已经创建了自己的组件,我想做一些类似的事情: <camel:camelContext id="camel1"> <camel:route> <camel:from uri="mysch://realthing?network=${network}" id="testEndpoint"/> 我希望${network}来自属性文件(使用Spring属性占位符): 我如何才能做到这一点?请参阅此常见问题解答 <contex
<camel:camelContext id="camel1">
<camel:route>
<camel:from uri="mysch://realthing?network=${network}" id="testEndpoint"/>
我希望${network}来自属性文件(使用Spring属性占位符):
我如何才能做到这一点?请参阅此常见问题解答
<context:property-placeholder location="classpath:test.properties"/>