applicationContext-dubbo-provider.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-rpc-service"/>
  10. <dubbo:registry address="zookeeper://zkserver:2181"/>
  11. <dubbo:protocol name="dubbo" port="20882"/>
  12. <dubbo:monitor protocol="registry"/>
  13. <!-- 文章 -->
  14. <bean id="cmsArticleServiceImpl" class="com.zheng.cms.rpc.service.impl.CmsArticleServiceImpl"/>
  15. <dubbo:service interface="com.zheng.cms.rpc.api.CmsArticleService" ref="cmsArticleServiceImpl" timeout="10000"/>
  16. <!-- 类目 -->
  17. <bean id="cmsCategoryServiceImpl" class="com.zheng.cms.rpc.service.impl.CmsCategoryServiceImpl"/>
  18. <dubbo:service interface="com.zheng.cms.rpc.api.CmsCategoryService" ref="cmsCategoryServiceImpl" timeout="10000"/>
  19. <!-- 评论 -->
  20. <bean id="cmsCommentServiceImpl" class="com.zheng.cms.rpc.service.impl.CmsCommentServiceImpl"/>
  21. <dubbo:service interface="com.zheng.cms.rpc.api.CmsCommentService" ref="cmsCommentServiceImpl" timeout="10000"/>
  22. <!-- 标签 -->
  23. <bean id="cmsTagServiceImpl" class="com.zheng.cms.rpc.service.impl.CmsTagServiceImpl"/>
  24. <dubbo:service interface="com.zheng.cms.rpc.api.CmsTagService" ref="cmsTagServiceImpl" timeout="10000"/>
  25. <!-- 专题 -->
  26. <bean id="cmsTopicImpl" class="com.zheng.cms.rpc.service.impl.CmsTopicServiceImpl"/>
  27. <dubbo:service interface="com.zheng.cms.rpc.api.CmsTopicService" ref="cmsTopicImpl" timeout="10000"/>
  28. <!-- 菜单 -->
  29. <bean id="cmsMenuImpl" class="com.zheng.cms.rpc.service.impl.CmsMenuServiceImpl"/>
  30. <dubbo:service interface="com.zheng.cms.rpc.api.CmsMenuService" ref="cmsMenuImpl" timeout="10000"/>
  31. <!-- 单页 -->
  32. <bean id="cmsPageImpl" class="com.zheng.cms.rpc.service.impl.CmsPageServiceImpl"/>
  33. <dubbo:service interface="com.zheng.cms.rpc.api.CmsPageService" ref="cmsPageImpl" timeout="10000"/>
  34. <!-- 设置 -->
  35. <bean id="cmsSettingImpl" class="com.zheng.cms.rpc.service.impl.CmsSettingServiceImpl"/>
  36. <dubbo:service interface="com.zheng.cms.rpc.api.CmsSettingService" ref="cmsSettingImpl" timeout="10000"/>
  37. <!-- 系统 -->
  38. <bean id="cmsSystemImpl" class="com.zheng.cms.rpc.service.impl.CmsSystemServiceImpl"/>
  39. <dubbo:service interface="com.zheng.cms.rpc.api.CmsSystemService" ref="cmsSystemImpl" timeout="10000"/>
  40. </beans>