Spring MVC Tutorials 41 - Web Services 11 ( HTTP PUT, @RequestBody, Content-Type 02)

preview_player
Показать описание
in this tutorial, we are going to test the REST API (HTTP PUT REST API ) using POST MAN tool which we developed in the previous part of this tutorial and also, we are going to learn about how to make use of Content-Type Request Header while making a Http PUT request for such a REST API.
Рекомендации по теме
Комментарии
Автор

in the next tutorial, we will learn about how to use Consumes argument with @RequestMapping annotation and about the use of ResponseEntity. Happy Learning...

gontuseries
Автор

It's Really very helpful for me, Thanks a lot ❤️....

hemanthk
Автор

Sir please explain the post and option method also..

VivekSharma-gdom
Автор

Ankush Sir, I am getting an error in Postman when sending data through xml
The error says-:
<!DOCTYPE html>
<html>
<head>
<title>Apache Tomcat/8.0.17 - Error report</title>
<style type="text/css">H1 {font-family:Tahoma, Arial, sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma, Arial, sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma, Arial, sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma, Arial, sans-serif;color:black;background-color:white;} B {font-family:Tahoma, Arial, sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma, Arial, sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style>
</head>
<body>
<h1>HTTP Status 405 - JSPs only permit GET POST or HEAD</h1>
<div class="line"></div>
<p>
<b>type</b> Status report
</p>
<p>
<b>message</b>
<u>JSPs only permit GET POST or HEAD</u>
</p>
<p>
<b>description</b>
<u>The specified HTTP method is not allowed for the requested resource.</u>
</p>
<hr class="line">
<h3>Apache Tomcat/8.0.17</h3>
</body>
</html>

harshitsaxena
Автор

getting
WARNING: Request method 'PUT' not supported" how to fix??

seemaraut
Автор

Getting error : http status 405. Jsps only permit GET POST or HEAD.

akankshagupta
Автор

sir im getting error in this program. it states "Unknown return value type: java.lang.Boolean". please help

akshatvohra
Автор

can anyone send me the github link please

akhilmittapally