摘要: 对于不是使用spring管理的项目,我们就自己创建对象使用:大概的思路就是①创建dao接口②实现该接口,并且编写逻辑:Dao:public interface StudentDao {public List findAll();}因为是测试,所以我们就只定义了一个查询所有记录的方法,下面是实现:pu... 阅读全文
posted @ 2015-12-09 20:32 Hotsum 阅读(756) 评论(0) 推荐(0) 编辑