报错:
org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
解决:
报这个错是因为数据库的某字段不能为空,但是我们写的为空了。
检查一下自己写的代码。