首页 > 其他 > 详细

No default constructor for entity

时间:2020-06-30 12:09:31      阅读:46      评论:0      收藏:0      [点我收藏+]

异常:

org.springframework.orm.hibernate3.HibernateSystemException: No default constructor for entity

Caused by: org.hibernate.InstantiationException: No default constructor for entity

原因:

实体内没有的默认构造函数

解决:

在Entity实体类里添加构造函数

public Entity() {
    super();
}

No default constructor for entity

原文:https://www.cnblogs.com/mjtabu/p/13212835.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!