欢迎使用Markdown编辑器写博客
springBoot用jpa插入数据库报销:error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: error performing isolated work
- 因为我们表中主键是自增长,实体主要需要加
-
@GeneratedValue(strategy = GenerationType.IDENTITY)