org.hibernate.engine.jdbc.spi.SqlExceptionHelper: Duplicate entry '31' for key 'PRIMARY'

先记录一下问题

产生这个错误的原因是我的一张表 id没有加主键策略

原文地址:https://www.cnblogs.com/super-hu/p/12642366.html