Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'name': was exp
Posted 随笔
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'name': was exp相关的知识,希望对你有一定的参考价值。
Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token ‘name‘: was expecting (‘true‘, ‘false‘ or ‘null‘)
Ajax跨域问题
ajax提交添加下面两行代码
contentType:‘application/json;charset=utf-8‘
data:JSON.stringify(数据)
var allData = {
name:"张三",
age:20
};
$.ajax({
type: "POST",
url: "xxxx",
contentType:‘application/json;charset=utf-8‘,
data:JSON.stringify(allData),
success: function (data) {
alert(data);
}
});
以上是关于Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'name': was exp的主要内容,如果未能解决你的问题,请参考以下文章
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:20880 Caused by: ja
Mathematical Problems Caused by CCD