org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.apache.ibatis.reflection.ReflectionException: Error instantiating class cn.ddf.bean.Student with invalid types () or values (). 
Cause: java.lang.NoSuchMethodException: cn.ddf.bean.Student.<init>()
### The error may exist in mapper/studentMapper.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select id,age,NAME from student
### Cause: org.apache.ibatis.reflection.ReflectionException: Error instantiating class cn.ddf.bean.Student with invalid types () or values ().
 Cause: java.lang.NoSuchMethodException: cn.ddf.bean.Student.<init>()
MyBatis动态代理查询出错

增删改没错,查询出错!

这是实体类中写了带参构造却没写无参构造方法!!

相关文章:

  • 2021-07-25
  • 2021-12-22
  • 2021-11-19
  • 2021-09-19
  • 2022-12-23
  • 2021-10-16
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2021-07-30
  • 2021-04-22
  • 2022-01-02
  • 2022-12-23
  • 2021-05-14
相关资源
相似解决方案