1. @PostMapping("/requestHeader")
    2. @ResponseBody
    3. public String requestBody03(@RequestHeader(name = "Content-Type") String contentType){
    4. return contentType;
    5. }

    根据请求头内名字匹配结果