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