package cn.xdl.test;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import cn.xdl.dao.DeptDao;
import cn.xdl.entity.Dept;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={
"classpath:spring-mvc.xml","classpath:applicationContext.xml"})
public class TestDeptDao {
@Resource
private DeptDao deptDao;
@Test
public void test1(){
List<Dept> list = deptDao.findAll();
for(Dept dept:list){
System.out.println(dept.getDeptno()+" "+dept.getDname());
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
spring框架jar包,已经分类
共24个文件
jar:21个
xml:2个
java:1个
5星 · 超过95%的资源 需积分: 13 120 下载量 116 浏览量
2017-09-19
18:48:54
上传
评论 1
收藏 8.82MB ZIP 举报
温馨提示
一个轻量级控制反转(IoC)和面向切面(AOP)的容器框架。文件内包含spring框架的jar包,以及连接数据库使用的commons-dbcp-1.2.2和commons-pool jar包
资源推荐
资源详情
资源评论
收起资源包目录
spring_lib.zip (24个子文件)
spring-lib
aop
spring-aspects-4.1.6.RELEASE.jar 55KB
spring-aop-4.1.6.RELEASE.jar 351KB
aspectjweaver.jar 1.47MB
aopalliance.jar 4KB
applicationContext.xml 2KB
mvc
spring-webmvc-4.1.6.RELEASE.jar 762KB
spring-web-4.1.6.RELEASE.jar 702KB
redis
spring-data-redis-1.6.2.RELEASE.jar 683KB
spring-redis.xml 2KB
json
jackson-core-2.4.1.jar 220KB
jackson-annotations-2.4.1.jar 38KB
jackson-databind-2.4.1.jar 1.02MB
dao
spring-tx-4.1.6.RELEASE.jar 247KB
spring-jdbc-4.1.6.RELEASE.jar 417KB
orm
spring-orm-4.1.6.RELEASE.jar 367KB
jdbc
commons-dbcp-1.2.2.jar 119KB
commons-pool.jar 61KB
test
spring-test-4.1.6.RELEASE.jar 491KB
TestDeptDao.java 727B
ioc
spring-expression-4.1.6.RELEASE.jar 253KB
spring-context-4.1.6.RELEASE.jar 1002KB
spring-beans-4.1.6.RELEASE.jar 692KB
commons-logging.jar 59KB
spring-core-4.1.6.RELEASE.jar 984KB
共 24 条
- 1
资源评论
- java小百2018-03-16很有用谢谢
zxh_997234531
- 粉丝: 7
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功