首页>代码>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 LV8
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 LV38
2020年6月6日
jxchb123 LV6
2020年6月1日

最近浏览