No constructor found in org.domain.student matching
1.没有相应的构造方法;
package org.domain;
public class student {
private int id;
private String name;
private String sex;
private int age;
private ClassGrade classGrade;
private int class_id;
//方法
set与get方法;}
2.类中属性名与Mapper配置文件中不匹配
3.写了进行初始化的构造方法,使得编译器不会自动添加默认构造方法,必须手动添加