栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Springboot中的bug①

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Springboot中的bug①

could not execute statement; nested exception is org.hibernate.exception.generic 无法执行语句;嵌套异常是org . hibernate . exception . generic

在写Springboot整合JPA的时候报了一个错

org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement

 Student实体类已经全部标明,包括主键,为什么会出现这个问题呢,

解决方法

 答案就是:table表格没有设置主键,打开student表,设置ID作为主键并且自动增长

 叮~Debug小能手

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/821591.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号