org.hibernate.engine.jdbc.spi.SqlExceptionHelper: Duplicate entry '31' for key 'PRIMARY' 先记录一下问题 产生这个错误的原因是我的一张表 id没有加主键策略