首页>代码>spring、springmvc、mybatis、dubbo、zookeeper简单架构分布式系统>/dubbo-impl/src/main/java/com/dubbo/zookeeper/Zookeeper.java
package com.dubbo.zookeeper;

import org.springframework.beans.BeansException;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * create by ZhangPei on 2017/6/14 14:39.
 */
public class Zookeeper {
    public static void main(String[] args) {
        try {
            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                    new String[] { "spring-context.xml","spring-dubbo.xml" });
            context.start();
            System.out.println("Press any key to exit.");
            System.in.read();
        } catch (BeansException e) {
            System.err.println(e.getMessage());
            e.printStackTrace();
        } catch (IOException e) {
            System.err.println(e.getMessage());
            e.printStackTrace();
        }
    }
}
最近下载更多
rabbit223  LV1 2023年2月10日
adminadminsqwqe  LV7 2022年7月13日
Simon_ydl  LV5 2022年6月13日
微信网友_5952881591750656  LV1 2022年5月10日
bin2337  LV4 2022年4月22日
贾jialeo  LV1 2021年5月25日
ExamplesDYC  LV13 2021年5月14日
李海洋  LV12 2021年1月2日
1690356080  LV37 2020年6月6日
jxchb123  LV6 2020年6月1日
最近浏览更多
UzumakiHL 2023年2月22日
暂无贡献等级
rabbit223  LV1 2023年2月10日
微信网友_6248713511227392  LV11 2022年12月5日
wxy0309  LV6 2022年11月28日
流连瓦盖法  LV7 2022年11月8日
无名氏111  LV32 2022年11月3日
zxc131313  LV12 2022年10月22日
何寒衣  LV3 2022年9月15日
adminadminsqwqe  LV7 2022年7月13日
annaz 2022年6月24日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友