Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring.schema支持 注册中心类型(实现)配置 #30

Closed
fengjiachun opened this issue Jul 19, 2017 · 2 comments
Closed

Spring.schema支持 注册中心类型(实现)配置 #30

fengjiachun opened this issue Jul 19, 2017 · 2 comments

Comments

@fengjiachun
Copy link
Owner

如题

@fengjiachun
Copy link
Owner Author

fengjiachun commented Jul 19, 2017

<jupiter:server id="jupiterServer" registryType="zookeeper">
    <jupiter:property registryServerAddresses="127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183" />
    <!-- 可选配置 -->
    <!--
        String registryServerAddresses                      // 注册中心地址 [host1:port1,host2:port2....]
        ProviderInterceptor[] providerInterceptors          // 全局拦截器
        FlowController<JRequest> flowController             // 全局流量控制
    -->
</jupiter:server>

<jupiter:client id="jupiterClient" registryType="zookeeper">
    <jupiter:property registryServerAddresses="127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183" />
    <!-- 可选配置 -->
    <!--
        String registryServerAddresses                  // 注册中心地址 [host1:port1,host2:port2....]
        String providerServerAddresses                  // IP直连到providers [host1:port1,host2:port2....]
    -->
</jupiter:client>

@fengjiachun
Copy link
Owner Author

fengjiachun commented Jul 19, 2017

代码样例

配置样例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant