Spring MVC Tutorials 39 – Web Services 09 ( @RequestMapping using produces )

Share

in this tutorial, we will learn how to make use of an argument ‘produces’ with the @RequestMapping annotation over a REST API so as to restrict that REST API controller method to support only one kind of format while producing the response for a request.