applicationContext-dubbo-consumer.xml 1.5 KB

12345678910111213141516171819202122232425262728293031
  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. <dubbo:application name="zheng-cms-admin"/>
  10. <dubbo:registry address="zookeeper://127.0.0.1:2181" default="false"/>
  11. <dubbo:registry id="upmsRegistry" address="zookeeper://127.0.0.1:2181"/>
  12. <!-- 订阅服务 -->
  13. <dubbo:consumer check="false"/>
  14. <!-- 文章 -->
  15. <dubbo:reference id="cmsArticleService" interface="com.zheng.cms.rpc.api.CmsArticleService" mock="true"/>
  16. <!-- 类目 -->
  17. <dubbo:reference id="cmsCategoryService" interface="com.zheng.cms.rpc.api.CmsCategoryService" mock="true"/>
  18. <!-- 评论 -->
  19. <dubbo:reference id="cmsCommentService" interface="com.zheng.cms.rpc.api.CmsCommentService" mock="true"/>
  20. <!-- 标签 -->
  21. <dubbo:reference id="cmsTagService" interface="com.zheng.cms.rpc.api.CmsTagService" mock="true"/>
  22. <!-- 用户 -->
  23. <dubbo:reference id="userService" interface="com.zheng.cms.rpc.api.UserService" mock="true"/>
  24. <!-- 接口服务 -->
  25. <dubbo:reference id="upmsApiService" interface="com.zheng.upms.rpc.api.UpmsApiService" mock="true" registry="upmsRegistry"/>
  26. </beans>