---
title: "Ibaits实现CRUD之三"
author: "changong"
date: "2009-05-10T17:20:00Z"
tags: []
slug: "ibaits-crud"
draft: false
lastmod: "2009-05-10T17:20:00Z"
id: 384270
url: "https://changong.iteye.com/blog/384270"
---

转载请注明:来自[http://blog.csdn.net/M\_ChangGong/](http://blog.csdn.net/M_ChangGong/) 作者:张燕广

**该篇主要编写Junit测试类。**

**为项目添加Junit4支持，如下图所示：**

**![](http://p.blog.csdn.net/images/p_blog_csdn_net/m_changgong/EntryImages/20090510/junit.GIF)**

**添加junit4支持后在src下创建包com.zyg.ssi.junit.test，在该包下创建junit测试类StudentDaoTest，其代码如下：**

**至此，Ibaits实现CRUD的功能已全部完成。如果对Ibaits在web项目中的应用或者Spirng2.5、Struts2.0和Ibaits整合的应用感兴趣，请关注后续文章。**