没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
package soundsystem; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @RunWith(SpringJUnit4ClassRunner.class)//Spring的Junit测试,会在测试开始时,创建Spring的应用上下文 @ContextConfiguration(classes=CDPlayerSpringConfig.class)//表明配置类 public class SpringTest1 { //自动装配 @Autowired private SgtPeppers sp; @Test public void instanceSpring(){ sp.play(); } }
资源推荐
资源详情
资源评论
收起资源包目录
SpringInAction2.1.zip (68个子文件)
SpringInAction2.1
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 414B
org.eclipse.wst.common.component 510B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 522B
org.eclipse.jdt.core.prefs 364B
src
soundsystem
SpringTest1.java 661B
CompactDisc.java 138B
SpringTest2.java 561B
SgtPeppers.java 526B
CDPlayerSpringConfig.java 317B
bean.xml 620B
.project 1KB
WebRoot
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 676B
classes
soundsystem
SpringTest1.class 831B
SpringTest2.class 1008B
CDPlayerSpringConfig.class 467B
CompactDisc.class 221B
SgtPeppers.class 995B
bean.xml 620B
lib
spring-aspects-4.2.0.RELEASE.jar 57KB
jackson-databind-2.2.1.jar 845KB
spring-messaging-4.2.0.RELEASE.jar 362KB
spring-web-4.2.0.RELEASE.jar 748KB
validation-api-1.1.0.Final.jar 62KB
spring-webmvc-4.2.0.RELEASE.jar 845KB
jackson-core-2.2.1.jar 188KB
spring-jms-4.2.0.RELEASE.jar 273KB
spring-test-4.2.0.RELEASE.jar 537KB
spring-context-support-4.2.0.RELEASE.jar 176KB
spring-websocket-4.2.0.RELEASE.jar 418KB
hibernate-validator-5.2.4.Final.jar 688KB
jboss-logging-3.2.1.Final.jar 65KB
spring-oxm-4.2.0.RELEASE.jar 81KB
mysql-connector-java-5.1.29.jar 856KB
spring-core-4.2.0.RELEASE.jar 1MB
hibernate-validator-annotation-processor-5.2.4.Final.jar 63KB
junit-4.11.jar 239KB
spring-context-4.2.0.RELEASE.jar 1.03MB
commons-logging-1.1.1.jar 59KB
spring-instrument-tomcat-4.2.0.RELEASE.jar 10KB
hamcrest-core-1.3.jar 44KB
spring-instrument-4.2.0.RELEASE.jar 7KB
jackson-module-jaxb-annotations-2.2.1.jar 25KB
classmate-1.1.0.jar 61KB
spring-jdbc-4.2.0.RELEASE.jar 412KB
javax.servlet.jsp.jstl-api-1.2.1.jar 32KB
mybatis-3.4.1.jar 1.51MB
spring-beans-4.2.0.RELEASE.jar 712KB
commons-logging-1.2.jar 60KB
jackson-core-asl-1.8.8.jar 222KB
spring-orm-4.2.0.RELEASE.jar 455KB
spring-tx-4.2.0.RELEASE.jar 257KB
spring-aop-4.2.0.RELEASE.jar 355KB
log4j-1.2.17.jar 478KB
jackson-mapper-asl-1.8.8.jar 653KB
commons-io-2.4.jar 181KB
spring-webmvc-portlet-4.2.0.RELEASE.jar 173KB
fastjson-1.2.7.jar 407KB
hibernate-validator-cdi-5.2.4.Final.jar 33KB
javax.servlet.jsp.jstl-1.2.1.jar 398KB
commons-fileupload-1.3.1.jar 67KB
spring-expression-4.2.0.RELEASE.jar 256KB
jackson-annotations-2.2.1.jar 33KB
bean.xml 531B
index.jsp 834B
.classpath 1KB
共 68 条
- 1
资源评论
不知这世界还有没有我
- 粉丝: 1
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功