您的位置:首页 > 其它

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" />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: