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配置文件中不匹配

No constructor found in org.domain.student matching

No constructor found in org.domain.student matching

3.写了进行初始化的构造方法,使得编译器不会自动添加默认构造方法,必须手动添加

No constructor found in org.domain.student matching

相关文章:

  • 2021-08-25
  • 2021-08-05
  • 2022-12-23
  • 2022-03-08
  • 2022-01-12
  • 2021-11-24
  • 2022-02-26
猜你喜欢
  • 2021-12-30
  • 2021-12-12
  • 2021-09-24
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案