package test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.dubbo.service.DemoService;
/**
* 消费者调用
* @author Andy
* @date 2018年1月29日
*/
public class Start {
public static void main(String[] args) {
//测试常规服务
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
context.start();
System.out.println("consumer demo start");
DemoService demoService = context.getBean(DemoService.class);
System.out.println("consumer demo");
System.out.println(demoService.getPermissions(1L));
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
dubbo-master.zip (55个子文件)
dubbo-master
dubbo-api
.project 561B
src
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
java
com
dubbo
service
DemoService.java 252B
UserService.java 170B
target
classes
com
dubbo
service
UserService.class 180B
DemoService.class 260B
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 243B
pom.xml 633B
.classpath 1KB
dubbo-provider
.project 566B
src
test
java
test
Start.java 535B
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
resources
applicationContext.xml 1KB
java
com
dubbo
service
impl
UserServiceImpl.java 308B
DemoServiceImpl.java 591B
target
classes
applicationContext.xml 1KB
com
dubbo
service
impl
DemoServiceImpl.class 1KB
UserServiceImpl.class 701B
test-classes
test
Start.class 1KB
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 243B
pom.xml 732B
.classpath 1KB
dubbo
.project 557B
src
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 243B
pom.xml 8KB
.classpath 1KB
dubbo-consumer-user
.project 571B
src
test
java
test
Start.java 630B
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
resources
applicationContext.xml 980B
target
classes
applicationContext.xml 980B
test-classes
test
Start.class 1KB
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 243B
pom.xml 661B
.classpath 1KB
dubbo-consumer
.project 566B
src
test
java
test
Start.java 638B
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
resources
applicationContext.xml 980B
target
classes
applicationContext.xml 980B
test-classes
test
Start.class 1KB
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 243B
pom.xml 656B
.classpath 1KB
共 55 条
- 1
资源评论
- wensonsmith2018-08-07还可以,能用的
- qq_396309662018-08-08可以的,再次下载
- datang_leo2019-05-16可以参考参考
Andy_down
- 粉丝: 72
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功