Table 'xxx.hibernate_sequence' doesn't exist

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

原文地址:https://www.cnblogs.com/cdfive2018/p/9801362.html