org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n

org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n

由于本人的数据库表的id自增,在entity中加入注解
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
数据库也是设置自增,大概是冲突了
加上如下配置

spring.jpa.hibernate.use-new-id-generator-mappings=false

某链接解释:
https://access.redhat.com/documentation/en-us/jboss_enterprise_application_platform/6.3/html/migration_guide/preserve_the_existing_behavior_of_the_hibernate_identity_auto_generated_value1


版权声明:本文为qq_30581017原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。