好好生活
  平平淡淡每一天

编辑

No default constructor for entity

异常:

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

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

原因:

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

解决:

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

public Entity() {
    super();
}
posted @ 2020-06-30 11:39  踏步  阅读(1008)  评论(0)    收藏  举报