标签:框架 aop 机器 debug 扫描 xmlns 多项目 protoc encoding
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd"> <!-- 配置包扫描器,扫描所有带@Service注解的类 --> <context:component-scan base-package="xxxx.service"/> <!-- 发布dubbo服务 --> <!-- 提供方应用信息,用于计算依赖关系 --> <dubbo:application name="xxxx" /> <!-- 注册中心的地址 --> <dubbo:registry protocol="zookeeper" address="192.168.224.50:2181" /> <!-- 用dubbo协议在20880端口暴露服务 --> <dubbo:protocol name="dubbo" port="20880" /> <!-- 声明需要暴露的服务接口 --> <dubbo:service interface="xxxx.ItemService" ref="itemServiceImpl" timeout="300000"/> <dubbo:service interface="xxxx.ItemCatService" ref="itemCatServiceImpl" timeout="300000"/> </beans>
<!-- 引用dubbo服务 --> <dubbo:application name="xxxx"/> <dubbo:registry protocol="zookeeper" address="192.168.224.50:2181" /> <dubbo:reference interface="xxxx.ItemService" id="itemService" />
标签:框架 aop 机器 debug 扫描 xmlns 多项目 protoc encoding
原文地址:http://www.cnblogs.com/zyant/p/6810618.html