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

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

in the next tutorial, we will learn how to make a http PUT type of request on the REST API as well as the use of @RequestBody annotation. Happy learning...

gontuseries
Автор

thank you so much sir for uploading this video..

vikashsingh-wfko
Автор

Hi Gorav,
If we consider the MediaType class for the Produces property from "org.springframework.http" the package, the IDE is showing a conflict error as "The import collides with another import statement". So, to fix that, we have to use the fully qualified path.

kiranmarrapu
Автор

Your explanations and teaching techniques are awsome sir ...but please specify version because from starting of this webservices topic no json response and 404 error...

abhijeetzade
Автор

So basically the request handler method is generating/producing the data in xml or json format, right?

simon
Автор

Restricting rest API to one specific format cannot be done just by not adding required jars. Like if we want to restrict to json alone, not adding XML related jars to classpath will not suffice?

lifeworkofdr.dhulipala
Автор

sir please make next tutorial on spring nvc with hinernate please sir

Branincupdates
join shbcf.ru