@PostMapping("/requestHeader") @ResponseBody public String requestBody03(@RequestHeader(name = "Content-Type") String contentType){ return contentType; } 根据请求头内名字匹配结果