1 <?XML version= "1.0" encoding= "UTF-8"?>2 <Beansxmlns= "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/beans6 http://www.springframework.org/schema/beans/spring-beans.xsd7 Http://code.alibabatech.com/schema/dubbo8 http://code.alibabatech.com/schema/dubbo/dubbo.xsd ">9 Ten One <Dubbo:consumerCheck= "false"/> A - <!--provider app information for calculating dependencies - - <dubbo:applicationname= "Test-ma-consumer"/> the - <!--exposing a service address using the Zookeeper Broadcast Registration center - - <Dubbo:registryProtocol= "Zookeeper"Address= "Zookeeper://${zookeeper.url}"/> - + <!--Port-1 automatically assigns ports by registry - - <Dubbo:protocolname= "Dubbo"Port= "-1"/> + A <!--Merchant Bank Relationship key table service - at <dubbo:referenceInterface= "Com.ht.ma.query.facade.MemberBankKeyService" - ID= "Memberbankkeyserviceimpl" - Timeout= " the" - Retries= "0"/> - - </Beans>
02. Build a test project based on Idea+spring+maven--Configuration Dubbo-consumer.xml