Jersey @Consumes 和 @Produces 之间有什么不同

What's the different between Jersey @Consumes and @Produces

泽西 @Consumes@Produces 有什么不同?我对 Jersey Restful 服务感到困惑。

@Consumes 指定资源从客户端接受的 MIME 类型。但是,@Produces 指定资源 提供给客户端的 MIME 类型。例如,资源可能接受 application/json (@Consumes) 和 return text/plain (@Produces).

https://docs.oracle.com/cd/E19226-01/820-7627/6nisfjmko/index.html