spring mvc

发布时间 2023-06-08 22:57:47作者: x-cuke

spring mvc接收json格式字符串

@PostMapping("jsonhello")
public String jsonhello(@RequestBody Map<String,Object> map){
    System.out.println(JSONObject.toJSONString(map));
    return "SUCCESS";
}

apipost请求

wireshark