Spring JPA GenerationType.AUTO 不能自动按主键自增的问题

  • Ref: https://feitianbenyue.iteye.com/blog/2275682

Spring Boot 1.x

默认JPA的spring.jpa.hibernate.use-new-id-generator-mappings=false

Spring Boot 2.x

默认JPA的spring.jpa.hibernate.use-new-id-generator-mappings=true

  • Github: https://github.com/rench/orm-querydsl/blob/master/src/main/resources/application.properties#L10

你可能感兴趣的:(Spring JPA GenerationType.AUTO 不能自动按主键自增的问题)