摘要:
添加到ibatis相关jar包!实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private Strin... 阅读全文
摘要:
添加ibatis相关的jar包!实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private Strin... 阅读全文
摘要:
实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
摘要:
实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
摘要:
实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
摘要:
实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="t_dog")pub... 阅读全文
摘要:
添加hibernate的相关jar包!实体类:package com.spring.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Tab... 阅读全文
摘要:
实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
摘要:
实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
摘要:
实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
摘要:
实体类:package com.spring.model;public class DogPet { private int id; private String name; private int age; private String kind; priva... 阅读全文
摘要:
接口Service:package com.spring.service;public interface DogPetService { public void queryAllDogPets();}实现类ServiceImpl:package com.spring.service.impl... 阅读全文
摘要:
新建java project工程,建src、conf、test源码文件夹,导入相关包,需要spring的相关jar包和common-logging相关jar包接口Service:package com.spring;public interface DogPetService { public... 阅读全文