0
点赞
收藏
分享

微信扫一扫

org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;char

解决方法:添加

contentType : 'application/json',

$.ajax({
type: "POST",
url: "/xxx",
dataType:'json',
contentType : 'application/json','false',
data:{"name":1,"value2":2},
success:function (data) {
}
});

 

举报

相关推荐

0 条评论