标签:code void test request out lse 信息 mapping ams
@PostMapping("/test/post") public void post(@RequestBody String params, @RequestHeader(required = false, value = "contentType") String contentType, @RequestHeader(required = false, value = "Accept") String Accept) { System.out.println("contentType:" + contentType); System.out.println("Accept:" + Accept); JSONObject json = JSONObject.parseObject(params); String userName = json.getString("username"); System.out.println("userName:" + userName); }
标签:code void test request out lse 信息 mapping ams
原文地址:https://www.cnblogs.com/huanggy/p/9637771.html