1234567891011121314151617181920212223 |
- <?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
- classpath:org/springframework/beans/factory/xml/spring-beans-3.1.xsd
- http://code.alibabatech.com/schema/dubbo
- classpath:dubbo.xsd">
- <!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 -->
- <dubbo:application name="efunbox-api-weixin" /> <!-- 使用multicast广播注册中心暴露发现服务地址 -->
- <dubbo:registry protocol="zookeeper" address="${dubbo.registry.address}"/> <!-- 生成远程服务代理,可以和本地bean一样使用demoService -->
- <!-- behavior -->
- <dubbo:reference id="favoritesService" interface="cn.efunbox.service.FavoritesService" check="false" version="${consumer.behavior.dubbo.version}"/>
- <dubbo:reference id="subscribeService" interface="cn.efunbox.service.SubscribeService" check="false" version="${consumer.behavior.dubbo.version}"/>
- <dubbo:reference id="postsService" interface="cn.efunbox.service.PostsService" check="false" version="${consumer.behavior.dubbo.version}"/>
- <dubbo:reference id="replyService" interface="cn.efunbox.service.ReplyService" check="false" version="${consumer.behavior.dubbo.version}"/>
- <dubbo:reference id="coursePlayLogService" interface="cn.efunbox.service.CoursePlayLogService" check="false" version="${consumer.behavior.dubbo.version}"/>
- <dubbo:reference id="coursewareService" interface="cn.efunbox.service.CoursewareService" check="false" version="${consumer.resource.dubbo.version}"/>
- <dubbo:reference id="courseService" interface="cn.efunbox.service.CourseService" check="false" version="${consumer.resource.dubbo.version}"/>
- <!-- user -->
- <dubbo:reference id="userInfoService" interface="cn.efunbox.service.UserInfoService" check="false" version="${consumer.user.dubbo.version}"/>
- </beans>
|