前台往后台发json
{
"id": "3",
"login_name": "333",
"phone": "15603006174",
"add_flag": 0,
"unit": [
"Boss一号总经办",
"5号unit"
]
}
后台代码如下:
@At
@Ok("json")
@POST
@AdaptBy(type = JsonAdaptor.class)
public Object test(NutMap nutMap) {
System.out.println(nutMap);
}
debug得到的nutMap为null,拿不到前台发送过来的json
2 回复
添加回复
请先登陆