3.3K Star 9.9K Fork 4.5K

iBase4J / iBase4J

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dubbo.xml 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
A圣翔 提交于 2017-10-12 15:07 . 优化配置
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd"
default-lazy-init="false">
<!-- 提供方应用名称信息,这个相当于起一个名字,我们dubbo管理页面比较清晰是哪个应用暴露出来的 -->
<dubbo:application name="${rpc.registry.name}" logger="slf4j" />
<!-- 使用zookeeper注册中心暴露服务地址 -->
<dubbo:registry address="${rpc.registry.address}" check="false" timeout="${rpc.connect.timeout}"
file="${rpc.cache.dir}/dubbo-${rpc.registry.name}.cache" />
<!-- 用dubbo协议在20880端口暴露服务 -->
<dubbo:protocol name="dubbo" port="${rpc.protocol.port}" threads="${rpc.protocol.threads}" />
<!-- 服务端要暴露的服务接口,注解@com.alibaba.dubbo.config.annotation.Service -->
<dubbo:annotation package="org.ibase4j" />
<!-- 服务消费端配置 -->
<dubbo:consumer timeout="${rpc.timeout}" loadbalance="leastactive" check="false"
timeout="${rpc.request.timeout}" retries="${rpc.consumer.retries}" />
</beans>
Java
1
https://gitee.com/iBase4J/iBase4J.git
git@gitee.com:iBase4J/iBase4J.git
iBase4J
iBase4J
iBase4J
953c8cda8ed0acd246839bef5fcd6ac80e3e08c2

搜索帮助