首页 > 技术文章 > Table 'xxx.hibernate_sequence' doesn't exist

cdfive2018 2018-10-16 23:08 原文

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

推荐阅读