請求報錯了
為什么報錯了:the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencoded]
為什么報錯了:the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencoded]
2019-01-22
舉報
2019-01-23
單看報錯還有你看對應的視頻,應該是跨域請求的問題。
看看視頻的11:21秒的 @CrossOrigin注釋有沒有添加兩個屬性,
還有查看一下前端頁面 $.ajax{ 當中? 有沒有設置 contentType:"application/x-www-form-urlencoded", 以及?xhrFields:{withCredentials:true},
再或者看看后臺頁面中 Controller -> BaseController 有沒有設置?
以上單純看錯誤報告,希望能幫到你~