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