dubbo-consumer-config.xml 1.6 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
       xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
		http://www.springframework.org/schema/beans/spring-beans.xsd
		http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>classpath:META-INF/conf/dubbo.properties</value>
            </list>
        </property>
    </bean>

    <!-- zookeeper注册中心 -->
    <dubbo:registry protocol="zookeeper" address="${dubbo.registryAddress}" />

    <!-- 远程服务代理接口 -->
    <dubbo:annotation package="com.sibu.mall.order" />

    <!-- 关闭提供者的检索 -->
    <dubbo:consumer check="false" group="${dubbo.consumer.group}" version="${dubbo.consumerVersion}"/>

    <!-- 服务调用超时,超时重试-->
    <dubbo:provider delay="-1" timeout="${dubbo.connectTimeOut}"  retries="${dubbo.connectRetries}"/>

    <!-- 消费者名称 -->
    <dubbo:application name="${dubbo.applicationName}" />

</beans>