package com.hl.junit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.hl.demo.Chinese;
public class text {
@Autowired
private Chinese chinese;
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("/bean.xml");
//Chinese chinese = (Chinese) ctx.getBean("CHINESE");
//chinese.eat();
//chinese.walk();
text a = (text) ctx.getBean("text");
a.say();
}
public void say(){
System.out.println("hello world");
chinese.eat();
chinese.walk();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SpringStudy.rar (43个子文件)
SpringStudy
WebContent
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 515B
lib
spring-webmvc-portlet-4.0.0.RELEASE.jar 171KB
spring-jms-4.0.0.RELEASE.jar 206KB
spring-beans-4.0.0.RELEASE.jar 654KB
spring-instrument-tomcat-4.0.0.RELEASE.jar 10KB
spring-core-4.0.0.RELEASE.jar 933KB
spring-messaging-4.0.0.RELEASE.jar 223KB
spring-jdbc-4.0.0.RELEASE.jar 410KB
spring-context-4.0.0.RELEASE.jar 928KB
spring-test-4.0.0.RELEASE.jar 431KB
spring-webmvc-4.0.0.RELEASE.jar 645KB
spring-websocket-4.0.0.RELEASE.jar 246KB
spring-aop-4.0.0.RELEASE.jar 343KB
spring-expression-4.0.0.RELEASE.jar 202KB
spring-oxm-4.0.0.RELEASE.jar 77KB
spring-context-support-4.0.0.RELEASE.jar 131KB
spring-instrument-4.0.0.RELEASE.jar 7KB
commons-logging-1.2.jar 60KB
spring-orm-4.0.0.RELEASE.jar 309KB
spring-framework-bom-4.0.0.RELEASE.jar 6KB
spring-aspects-4.0.0.RELEASE.jar 50KB
spring-tx-4.0.0.RELEASE.jar 242KB
spring-web-4.0.0.RELEASE.jar 646KB
spring-build-src-4.0.0.RELEASE.jar 71KB
index.jsp 329B
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 305B
org.eclipse.core.resources.prefs 57B
org.eclipse.wst.common.component 485B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 503B
org.eclipse.jdt.core.prefs 364B
src
com
hl
demo
Chinese.java 255B
Haha.java 632B
junit
text.java 716B
bean.xml 645B
.project 856B
.classpath 3KB
build
classes
com
hl
demo
Haha.class 1KB
Chinese.class 683B
junit
text.class 1KB
bean.xml 645B
共 43 条
- 1
资源评论
qq513283439
- 粉丝: 165
- 资源: 140
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功