Http请求中Content-Type讲解以及在Spring MVC注解中produce和consumes配置详解

https://blog.csdn.net/shinebar/article/details/54408020

补充:

@Consumes @Produces分别表示入参和出参数吗

可以这样讲。但是不是很到位。
是限定作用,类似于filter
consumes: 指定处理请求的提交内容类型(Content-Type),例如application/json, text/html;
produces: 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回;
原文地址:https://www.cnblogs.com/Andrew520/p/9619499.html