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