问题 org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement 解决 我这里是数据库字段varchar设置的值太少了,所设置的值塞不进去,所以要给该字段设置的长度长一点即可