dubbo-boss.xml 2.0 KB

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