Apache Camel读取配置文件
来源:互联网 发布:淘宝联盟返利网 编辑:程序博客网 时间:2024/06/09 20:26
方法一:
<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>
引用属性和上面的方法一样
camel版本:2.14.1
7 0
- Apache Camel读取配置文件
- Apache Camel读取配置文件
- Apache Camel 中camel配置文件引入其他xml文件介绍--将camel配置文件拆分后并引用
- Apache Camel
- Apache Camel
- Apache Camel 介绍
- apache camel removeEndpoints
- Apache Camel(1)
- apache Camel学习
- Apache Camel简介
- apache Camel 文档
- apache camel jetty http
- Apache Camel异常处理
- Apache Camel http4 blueprint
- 【Java.Apache.Camel】
- 什么时候使用Apache camel
- Apache Camel 基本概念理解
- camel读取配置信息
- WinPcap实战(一)——发送ARP包
- 选择排序
- SpringMVC + Apache POI 实现WEB中Excel下载功能
- WebRTC VideoEngine超详细教程(二)——集成OPENH264编解码器
- Oracle笔记——分页查询
- Apache Camel读取配置文件
- jemter接口测试(一)
- [JS]jQuery,javascript获得网页的高度和宽度 【转】
- Socket编程 socket连接设置超时的几种方法
- HashMap的存储与实现
- arm 7va与x86体系性能对比
- NDK DEBUG方法
- MySQL通用优化技巧
- 【dp+优化】tyvj1013 FAreStorm教你找GF