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

今天在用mui的ajax方法向後臺傳數據時,出現這樣的問題 我個人分析應該是後臺無法獲取到data裏面的數據,但是我的數據表設置不能爲空,所以報錯。 解決辦法: 將headers裏面的:‘Content-Type’:‘application/json’ 修改爲:‘Content-Type’:‘application/x-www-form-urlencoded’
相關文章
相關標籤/搜索