1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans
6 http://www.springframework.org/schema/beans/spring-beans.xsd
7 http://code.alibabatech.com/schema/dubbo
8 http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
9
10
11 <dubbo:consumer check="false"/>
12
13 <!-- 提供方应用信息,用于计算依赖关系 -->
14 <dubbo:application name="test-ma-consumer"/>
15
16 <!-- 使用zookeeper广播注册中心暴露服务地址 -->
17 <dubbo:registry protocol="zookeeper" address="zookeeper://${zookeeper.url}"/>
18
19 <!-- 端口 -1 由注册中心自动分配端口-->
20 <dubbo:protocol name="dubbo" port="-1"/>
21
22 <!-- 商户银行关系密钥表服务 -->
23 <dubbo:reference interface="com.ht.ma.query.facade.MemberBankKeyService"
24 id="memberBankKeyServiceImpl"
25 timeout="3000"
26 retries="0"/>
27
28 </beans>
详细搭建过程参考:https://www.cnblogs.com/xiuxingzhe/p/9250737.html
欢迎交流探讨
微信:125270461
博客:https://www.cnblogs.com/xiuxingzhe/