解决 org.hibernate.exception.ConstraintViolationException: could not execute statement
今天真的很痛苦!初入几天 Hibernate 框架,下午写了一堆 JUnit 测试,结果基本上全部报错: org.hibernate.exception.ConstraintViolationException: could not execute statement 其字面意思就是”违反约束异常,无法执行语句”。 百度也没找到什么合适的解决办法,不过就在刚刚,我终于找...