could not read a hi value - you need to populate the table: hibernate_sequen..

解决方法:


把数据库实体类的注解@GeneratedValue改成@GeneratedValue(strategy = GenerationType.IDENTITY) 

 

@GeneratedValue(strategy = GenerationType.IDENTITY)的意思是把Hibernate提供的主键生成策略设置为identity (即自增)
 

你可能感兴趣的:(Spring-data-JPA)