Spring MVC接收参数 JSON格式
求JSP页面代码 以及Controller代码
2条回答 默认 最新
- 许老许 2017-11-06 13:25关注
@RequestBody
@RequestMapping("")
public Map test(){
Map m=new HashMap();
m.put("xux","111");
return m;
}jsp 直接用el取值 ${xux}
解决 无用评论 打赏 举报
@RequestBody
@RequestMapping("")
public Map test(){
Map m=new HashMap();
m.put("xux","111");
return m;
}
jsp
直接用el取值
${xux}