package com.leetu.dubbo.consumer;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.leetu.dubbo.api.DemoService;
public class Consumer {
public static void main(String[] args) throws Exception {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
new String[] { "dubboContext.xml" });
context.start();
DemoService demoService = (DemoService) context.getBean("demoService");
String hello = demoService.sayHello("this is test");
System.out.println(hello);
System.in.read();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
zookeeper+dubbo+spring
共54个文件
xml:16个
prefs:9个
class:4个
4星 · 超过85%的资源 需积分: 50 92 下载量 190 浏览量
2017-10-30
17:47:19
上传
评论
收藏 41KB ZIP 举报
温馨提示
这是一个学习zookeeper+dubbo+spring的代码例子,一个maven工程
资源推荐
资源详情
资源评论
收起资源包目录
demo.zip (54个子文件)
dubbo-consumer
pom.xml 1KB
target
test-classes
m2e-wtp
web-resources
META-INF
maven
dubbo-consumer
dubbo-consumer
pom.xml 1KB
pom.properties 231B
MANIFEST.MF 104B
classes
dubboContext.xml 1005B
com
leetu
dubbo
consumer
Consumer.class 1KB
.settings
org.eclipse.m2e.core.prefs 86B
org.eclipse.wst.common.project.facet.core.xml 168B
org.eclipse.wst.common.component 767B
org.eclipse.wst.validation.prefs 48B
org.eclipse.jdt.core.prefs 723B
src
test
java
main
webapp
WEB-INF
web.xml 354B
resources
dubboContext.xml 1005B
java
com
leetu
dubbo
consumer
Consumer.java 560B
.project 999B
.classpath 1KB
dubbo-provider
pom.xml 1KB
target
test-classes
m2e-wtp
web-resources
META-INF
maven
dubbo-provider
dubbo-provider
pom.xml 1KB
pom.properties 231B
MANIFEST.MF 104B
classes
dubboContext.xml 1KB
com
leetu
dubbo
provider
impl
DemoServiceImpl.class 718B
Provider.class 867B
.settings
org.eclipse.m2e.core.prefs 86B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.common.component 683B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.validation.prefs 48B
.jsdtscope 626B
org.eclipse.jdt.core.prefs 723B
src
test
java
main
webapp
WEB-INF
web.xml 347B
resources
dubboContext.xml 1KB
java
com
leetu
dubbo
provider
impl
Provider.java 433B
DemoServiceImpl.java 260B
.project 1KB
.classpath 1KB
dubbo-api
pom.xml 3KB
target
test-classes
m2e-wtp
web-resources
META-INF
maven
dubbo-api
dubbo-api
pom.xml 3KB
pom.properties 229B
MANIFEST.MF 112B
classes
com
leetu
dubbo
api
DemoService.class 183B
.settings
org.eclipse.m2e.core.prefs 86B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.common.component 668B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.validation.prefs 48B
.jsdtscope 626B
org.eclipse.jdt.core.prefs 723B
src
test
java
main
webapp
WEB-INF
web.xml 350B
resources
java
com
leetu
dubbo
api
DemoService.java 128B
.project 1KB
.classpath 1KB
共 54 条
- 1
资源评论
- 风轻、云淡』2019-04-17还好吧,有点用
- Jamie00072018-08-02有用,感谢
- dircysok2018-09-28可以用,谢谢了
LoveM生活美好
- 粉丝: 23
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功