SpringDateJpa — 抛出异常generate could not read a hi value java.sql.SQLException

先看遇到的问题:

SpringDateJpa — 抛出异常generate could not read a hi value java.sql.SQLException

遇到这个BUG当时还以为是实体对应的表没有找到~

直接用注释@table指定表发现还是不行~用列也已经指定了~也是不行

SpringDateJpa — 抛出异常generate could not read a hi value java.sql.SQLException

查到一句话:

SpringDateJpa — 抛出异常generate could not read a hi value java.sql.SQLException

这时想到主键生成策略有一个序列生成的~

采用sequence机制生成主键,Mysql是不支持这种的,Mysql一般是使用identity的。