Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute

今天在用mui的ajax方法向后台传数据时,出现这样的问题
Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute
我个人分析应该是后台无法获取到data里面的数据,但是我的数据表设置不能为空,所以报错。
解决办法:
Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute
将headers里面的:‘Content-Type’:‘application/json’
修改为:‘Content-Type’:‘application/x-www-form-urlencoded’