springBoot用jpa插入数据库报销:error performing isolated work; SQL [n/a]; nested exception is org.hibernate..

时间:2024-03-22 22:11:57

欢迎使用Markdown编辑器写博客

springBoot用jpa插入数据库报销:error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: error performing isolated work

springBoot用jpa插入数据库报销:error performing isolated work; SQL [n/a]; nested exception is org.hibernate..

springBoot用jpa插入数据库报销:error performing isolated work; SQL [n/a]; nested exception is org.hibernate..

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