摘要: 添加到ibatis相关jar包!实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private Strin... 阅读全文
posted @ 2015-09-08 17:06 奋斗?坑 阅读(858) 评论(0) 推荐(0) 编辑
摘要: 添加ibatis相关的jar包!实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private Strin... 阅读全文
posted @ 2015-09-08 16:54 奋斗?坑 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:47 奋斗?坑 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:35 奋斗?坑 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:22 奋斗?坑 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
posted @ 2015-09-08 16:12 奋斗?坑 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 添加hibernate的相关jar包!实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Tab... 阅读全文
posted @ 2015-09-08 15:48 奋斗?坑 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
posted @ 2015-09-08 15:32 奋斗?坑 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
posted @ 2015-09-08 15:04 奋斗?坑 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
posted @ 2015-09-08 14:42 奋斗?坑 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
posted @ 2015-09-08 14:29 奋斗?坑 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 接口Service:package com.spring.service;public interface DogPetService { public void queryAllDogPets();}实现类ServiceImpl:package com.spring.service.impl... 阅读全文
posted @ 2015-09-08 14:19 奋斗?坑 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 新建java project工程,建src、conf、test源码文件夹,导入相关包,需要spring的相关jar包和common-logging相关jar包接口Service:package com.spring;public interface DogPetService { public... 阅读全文
posted @ 2015-09-08 13:54 奋斗?坑 阅读(183) 评论(0) 推荐(0) 编辑