org.springframework.dao.DataIntegrityViolationException: Error attempting to原因是实体加了@Builder导致没有无参构造解决:加上无参构造方法@Tolerate public 实体类名() { }