数据库
实体类
books
public class Books {
private int bookID;
private String bookName;
private int bookCounts;
private String detail;
private int classifyID;
private int borrow;
private Classify classify;
student
public class Student {
private int studentID;
private String studentName;
private int bookID;
private Books books;
classify
public class Classify {
private int classifyID;
private String classifyName;
mapper接口
public interface StudentMapper {
List<Student> getSCB();
}
xml文