dubbo+zookeeper入门资源


dubbo+zookeeper入门资源,可直接使用,适合新手练习使用。博文地址:http://blog.csdn.net/sysmwx/article/details/78870386
资源截图
代码片段和文件信息
package com.test;

import java.io.IOException;

import org.springframework.context.support.ClassPathxmlApplicationContext;

import com.test.service.TestService;

public class TestMain {
public static void main(String[] args) {
ClassPathxmlApplicationContext context = new ClassPathxmlApplicationContext(“applicationContext.xml“);
        context.start();
        TestService testService = (TestService) context.getBean(“testService“);
        System.out.println(testService.getStr());
        try {
            System.in.read();
        } catch (IOException e) {       
            e.printStackTrace();
        } 
}

}

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)