簡體   English   中英

使用 Apache Camel 和 Spring,我可以使用屬性構建 uri 嗎?

[英]Using Apache Camel and Spring, can I build uri using properties?

我已經創建了自己的組件,我想做類似的事情:

<camel:camelContext id="camel1">
    <camel:route>
        <camel:from uri="mysch://realthing?network=${network}" id="testEndpoint"/>

我希望 ${network} 來自屬性文件(使用 Spring 屬性占位符):

<context:property-placeholder location="classpath:test.properties"/>

我怎樣才能做到這一點?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM