Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'xxx.hibernate_sequence' doesn't exist

 

背景:

springboot 1.5.9.RELEASE 升级至 2.0.5.RELEASE时,spring-boot-starter-data-jpa使用了hibernate5:

 

解决方法:

spring.jpa.hibernate.use-new-id-generator-mappings=false 或 @GeneratedValue(strategy = GenerationType.IDENTITY)

------------------------------------------------------------------------------------------------

参考:

https://www.e-learn.cn/content/wangluowenzhang/173072
http://www.cnblogs.com/xing901022/p/4178963.html

相关文章:

  • 2022-12-23
  • 2021-05-30
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2021-07-07
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案