Spring Boot | MVC | REST Post Example Part 8

preview_player
Показать описание
Practical implementation of REST POST in Spring Boot | MVC
In this video we will see :
- Example of POST request using Spring Boot
- Using POST request to send data from client to the server
- HTTP has GET, POST, PUT, DELETE methods
- We will use Postman
- Adding value in body tag in Post request
- Creating method to accept the data
- @PostMapping annotation
- @RestController annotation
- Return only data not the page
- Connecting database
- Sending the Post request
- @RequestBody annotation
- Sending request in JSON format
- Specifying the data type of data
- Produce and Consume

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :
Рекомендации по теме
Комментарии
Автор

These tutorials are very nice and simple. No complicated code and yet clear explanation.

krishnakishore
Автор

Thanks Mr. Navin for this 'Spring Boot JPA with REST API' video. 👍

shankarraj
Автор

Hi Alien, part 5 - part 8 were extremely helpful . keep doing the good work

anmoldeep
Автор

the thing i was searching finally i got here very nice to clear my spring rest api concept....

upendra
Автор

Lovely session. Iam enjoying working with spring!

SrividyaYashRudra
Автор

Thanks for this. I added content type = application/json when sending a raw data in postman for post.

olahomori
Автор

Very nice and well explained tutorial :)

nooreekhayrattee
Автор

Hi Navin, Your videos are really helpful and informative.
I am not able to find previous parts of this video series. Can you please share the links.
Thanks :)

kritibansal
Автор

Love you sir, Love the way you explain.. .. Thanks you..

Автор

Thank you sir!!
Can we prefer pdf book rather than actual copy of book?

tejaslokhande
Автор

Good lecture as always! But the best practice for POST mapping is to get '201 created' not 200 ok..Try to change it sir..

aravindcse
Автор

hi navin, I am getting error when sending through forn-data and the error is:'ids for this class must be manually assigned before calling save()'

can u help me in this

vijayvaswani
Автор

Hello Navin, A question to shoot, if we are sending the data (eg: username, pwrd), it will be visible in browser console, This creates a application security problem, How do we address it..?


password is a feature that must be secure..

nasrullahsyed
Автор

when there is a join column how should we send the post request from the postman?

kethainovations
Автор

Sorry I have an issue with my end point. When I use @RequestBody in my endPoint, with json sent, I get an error.
Any Help Please...

lamino.touray
Автор

Hi navin,
I have created the controllers with the rest api and it's working well in postman when I test it. Iam using eclipse ide for my project. So iam done with my front end design as well


So I need to connect both my front end and my controllers how to do that

Should I use ajax for it??

If so how to do it can u please give me an idea so that I can go ahead

francispradeep
Автор

How to make our post method accept both form-data and raw data simultaneously?
If I add @RequestBody it accepts only json but not form-data

yugandharsai
Автор

How to accomplish both Web MVC using JSP as frond end, also it
should serve RESTful webservice for CRUD operations. Using Controller
annotation we can return ModelAndView object and using @RestController
used for REST. But one single Controller should give response to both
JSP request and Rest request. Please give any idea how to do or any
links it helpful for me understand.
Thanks

spnarayanrao
Автор

sir i am able to send data but i am getting an error

aqibishaq
Автор

Hello Sir while posting as form-data, it's going null in DB. But in your case, proper values are saving.

vivekmadan
join shbcf.ru