首页 > 移动平台 > 详细

org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported

时间:2020-08-08 17:30:38      阅读:77      评论:0      收藏:0      [点我收藏+]

在发布新课程的时候, 页面跳转失败, 提示全局错误

后端控制台提示如下:

org.springframework.web.HttpMediaTypeNotSupportedException: Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported

vue 报错

Uncaught (in promise) error

后来发现js中格式不对

如图:

技术分享图片

 

 更改后的代码

如图:

技术分享图片

 

 页面跳转成功

技术分享图片

 

 数据库添加成功

技术分享图片

 

org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported

原文:https://www.cnblogs.com/ooo888ooo/p/13456921.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!