mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
27 lines
968 B
XML
27 lines
968 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
|
||
|
||
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 ">
|
||
|
||
<!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 -->
|
||
|
||
<dubbo:application name="dubbo_consumer" />
|
||
|
||
<!-- 使用multicast广播注册中心暴露发现服务地址 -->
|
||
|
||
<dubbo:registry protocol="zookeeper" address="zookeeper://192.168.1.116:2181" />
|
||
|
||
<!-- 生成远程服务代理,可以和本地bean一样使用demoService -->
|
||
|
||
<dubbo:reference id="demoService" interface="com.geekq.miaosha.api.DemoService" />
|
||
|
||
</beans>
|