dubbo-provider.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <!-- 消费方应用名,用于计算依赖关系,不是匹配条件,不要与提供方一样 -->
  10. <dubbo:application name="swismp-provider"/>
  11. <!-- zookeeper作为注册中心 -->
  12. <!--20开发环境-->
  13. <dubbo:registry protocol="zookeeper"
  14. address="zookeeper://192.168.20.65:2181?backup=192.168.20.66:2181,192.168.20.67:2181" group="swismp"/>
  15. <!-- 用dubbo协议在20880端口暴露服务 -->
  16. <!--payload : 1M=1048576-->
  17. <dubbo:protocol name="dubbo" port="20884" />
  18. <dubbo:monitor protocol="registry"/>
  19. <dubbo:provider filter="monitor" group="dubbo"/>
  20. <!-- 生成远程服务代理 -->
  21. <!-- 系统功能模块 -->
  22. <dubbo:service ref="sysOperationLogService" interface="com.sunwin.swismp.service.sysfunction.SysOperationLogService"/>
  23. <dubbo:service ref="sysUserService" interface="com.sunwin.swismp.service.sysfunction.SysUserService"/>
  24. <dubbo:service ref="sysMenuService" interface="com.sunwin.swismp.service.sysfunction.SysMenuService"/>
  25. <dubbo:service ref="sysOrgService" interface="com.sunwin.swismp.service.sysfunction.SysOrgService"/>
  26. <dubbo:service ref="sysRoleService" interface="com.sunwin.swismp.service.sysfunction.SysRoleService"/>
  27. <dubbo:service ref="sysRoleMenuPermissionsService" interface="com.sunwin.swismp.service.sysfunction.SysRoleMenuPermissionsService"/>
  28. <!-- bean -->
  29. <!-- 系统功能模块 -->
  30. <bean class="com.sunwin.swismp.service.sysfunction.impl.SysOperationLogServiceImpl" id="sysOperationLogService"/>
  31. <bean class="com.sunwin.swismp.service.sysfunction.impl.SysUserServiceImpl" id="sysUserService"/>
  32. <bean class="com.sunwin.swismp.service.sysfunction.impl.SysMenuServiceImpl" id="sysMenuService"/>
  33. <bean class="com.sunwin.swismp.service.sysfunction.impl.SysOrgServiceImpl" id="sysOrgService"/>
  34. <bean class="com.sunwin.swismp.service.sysfunction.impl.SysRoleServiceImpl" id="sysRoleService"/>
  35. <bean class="com.sunwin.swismp.service.sysfunction.impl.SysRoleMenuPermissionsServiceImpl" id="sysRoleMenuPermissionsService"/>
  36. </beans>