Dubbo消费者配置
2016-05-19 15:17
447 查看
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<context:property-placeholder location="classpath:redis.properties" />
<context:component-scan base-package="com.xxx.xxxx" />
<dubbo:application name="consumer-cts" />
<dubbo:registry address="zookeeper://192.168.20.211:2181" />
<dubbo:reference id="InfoService" cluster="failfast"
interface="com.service.InfoService" lazy="true"
check="false" version="1.0.0" timeout="5000" />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
<context:property-placeholder location="classpath:redis.properties" />
<context:component-scan base-package="com.xxx.xxxx" />
<dubbo:application name="consumer-cts" />
<dubbo:registry address="zookeeper://192.168.20.211:2181" />
<dubbo:reference id="InfoService" cluster="failfast"
interface="com.service.InfoService" lazy="true"
check="false" version="1.0.0" timeout="5000" />
相关文章推荐
- 【转】Xcode7.1环境下上架iOS App到AppStore 流程 -- 不错!!
- 天气预报的web服务以及一些有用API
- arraylist 转json
- 指针下标和指针的关系
- python中四舍五入及向上向下取整处理
- 底层解惑-spring的IOC相关接口:BeanFactory与FactoryBean
- Java中关于OOM的场景及解决方法
- Hibernate的Annotation注解
- zookeeper搭建以及Java连接zookeeper测试
- SVN冲突解决
- laypage同一页面加入多处分页实现
- 优化安卓应用内存的神秘方法以及背后的原理,一般人我不告诉他
- 【转】iOS开发:开发证书知识点总结
- java数值范围以及float与double精度丢失问题
- N的二进制中1的个数
- C++中常见类型转换
- 开源新闻速递:第一届 LAS GNOME 大会即将召开
- Hdu-4763 Theme Section
- 4.SUID、SGID、SBIT、chattr权限
- swift学习之路(二)整型