POST data in Mysql database using Spring Boot and Postman tutorial | REST API

  Рет қаралды 27,604

United Top Tech

United Top Tech

Жыл бұрын

How to perform post operation to input data into mysql database in rest api using spring boot and postman is shown
#restapi #mysql #springboot

Пікірлер: 73
@mohomedrimzan8916
@mohomedrimzan8916 3 ай бұрын
Was going through so many tutorials but yet this was the successful one. Great One!!!
@unitedtoptech6288
@unitedtoptech6288 3 ай бұрын
Great to hear! good luck
@anithkumar1524
@anithkumar1524 Жыл бұрын
Thank you very much Brother, i m new to this coding, So Your videos would have helped me a lot to understand simply, Really appreciate your efforts🤩👍
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
Wow glad to know man!!
@erenyeager45god
@erenyeager45god 4 ай бұрын
Your doing a good job and Straight to the point. 🎉 And thats a "PascalCase" Not a "camelCase".❤
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
Thank you so much!!!
@deeyt7573
@deeyt7573 Ай бұрын
Simple & works fine
@unitedtoptech6288
@unitedtoptech6288 Ай бұрын
Fantastic
@jayaprakash1546
@jayaprakash1546 Жыл бұрын
Thank you for tutorial
@unitedtoptech6288
@unitedtoptech6288 11 ай бұрын
Welcome!!
@GnanaPonneri
@GnanaPonneri 3 ай бұрын
good Explanation
@unitedtoptech6288
@unitedtoptech6288 3 ай бұрын
Thanks for liking!!
@telugudramaworld8021
@telugudramaworld8021 11 ай бұрын
DO we need to write the MySQL code in prior or not needed, pls help here - The one with creating newDB and all in MySQL
@unitedtoptech6288
@unitedtoptech6288 11 ай бұрын
Yeah you need to create the database first using mysql code prior
@josephrexa5444
@josephrexa5444 5 ай бұрын
Simply It works
@unitedtoptech6288
@unitedtoptech6288 5 ай бұрын
cool
@user-ii6rb6nw8c
@user-ii6rb6nw8c Жыл бұрын
thank men
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
Any time
@user-qk2ph7jl1r
@user-qk2ph7jl1r Жыл бұрын
I didnt understand how you created the postman. Like how can you please tell? its not mentioned in the video
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
just click on create new workspace option, the one with the plus icon
@user-jm5ov9gx1v
@user-jm5ov9gx1v Жыл бұрын
Application runs fine but im not getting response in the postman, though the status is 200ok. this is my post request { "marks":100, "name":"Penny" } its my response: {} null values with random id are getting inserted into database. whats wrong? any idea!
@user-jm5ov9gx1v
@user-jm5ov9gx1v Жыл бұрын
Hibernate: select next_val as id_val from students_db_seq for update Hibernate: update students_db_seq set next_val= ? where next_val=? Hibernate: insert into students_db (st_marks,st_name,id) values (?,?,?)
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
Where are you passing the id? I see u have mark , name and id columns
@mr.khiladi6796
@mr.khiladi6796 9 ай бұрын
I am having the same problem, please somebody help us.
@mr.khiladi6796
@mr.khiladi6796 9 ай бұрын
@@user-jm5ov9gx1v did you get your problem solved ? if yes, please help me also.
@charubabbar8807
@charubabbar8807 8 ай бұрын
have your problem solved. I am getting same error.
@Strawhat-lu7ib
@Strawhat-lu7ib 8 ай бұрын
When iam posting json body one of the data is being stored as null in database
@unitedtoptech6288
@unitedtoptech6288 8 ай бұрын
Check if you have the type as json in postman and if you are using express.json() in code
@user-zv4lv7lg4l
@user-zv4lv7lg4l Жыл бұрын
Hi! thanks for the video, very helpfull. when using postman,I am getting a 500 error, seems like a problem with data base... because if Iam just returning a string there is not an error and if trying update data base - error. if someone knows what can i do
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
So you are performing update operation?
@mr.khiladi6796
@mr.khiladi6796 10 ай бұрын
are you using inteellij idea community version? if so, it does not support spring.
@unitedtoptech6288
@unitedtoptech6288 6 ай бұрын
wdym? i am using that one
@NikitaLazaroSevcisen
@NikitaLazaroSevcisen 4 ай бұрын
do you have this on some github repository??
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
No I don't have
@_KrishnaMoorthyR
@_KrishnaMoorthyR 9 ай бұрын
Sir I send request post and getting output as empty object
@unitedtoptech6288
@unitedtoptech6288 9 ай бұрын
Try changing the request from text to json
@rajeshkhannaarumugam6699
@rajeshkhannaarumugam6699 21 күн бұрын
will it work with maven
@unitedtoptech6288
@unitedtoptech6288 21 күн бұрын
yeah the code will be the same
@mamtakurrey6405
@mamtakurrey6405 Жыл бұрын
I didn't get table in MySQL
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
Can you check the code? or you getting any error?
@shreyamarya3452
@shreyamarya3452 3 ай бұрын
how to delete the data from Querry through this program
@unitedtoptech6288
@unitedtoptech6288 3 ай бұрын
You mean through query parameter ?
@clarkkent3004
@clarkkent3004 Ай бұрын
W
@unitedtoptech6288
@unitedtoptech6288 Ай бұрын
thanks W
@charubabbar8807
@charubabbar8807 8 ай бұрын
Hi Through postman I am getting response empty { } and rows are inserting in db as : +----+---------+------+ | id | st_mark | name | +----+---------+------+ | 1 | 0 | NULL | +----+---------+------+ Please help! Thanks in advance
@unitedtoptech6288
@unitedtoptech6288 8 ай бұрын
Are you sending response in code , that res send() thing ?
@gulshankataria77
@gulshankataria77 Жыл бұрын
I am getting MySQL8 dialect has been deprecated..could you please help ?
@unitedtoptech6288
@unitedtoptech6288 Жыл бұрын
I just did this last week, I didn't get any such things, did you select the java version same as me?
@manojprabhakar5286
@manojprabhakar5286 Жыл бұрын
@@unitedtoptech6288 how can we insert multiple records in to mysql through postman by using nodejs can you please do a video sir
@unitedtoptech6288
@unitedtoptech6288 6 ай бұрын
yep I did , you can send list of objects for that from postman
@siddhishinde8027
@siddhishinde8027 4 ай бұрын
Thank you sir, i have problem after the post and get my data is not reflecting in mysql workbench , please help me
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
What do you get as response? any errors?
@siddhishinde8027
@siddhishinde8027 4 ай бұрын
@@unitedtoptech6288 no errors sir
@siddhishinde8027
@siddhishinde8027 4 ай бұрын
@@unitedtoptech6288 no errors postman sending the request and the table is also created in mysql work bench only the data is not getting fetched
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
is it fetch all data or fetch by using an id alone?
@siddhishinde8027
@siddhishinde8027 4 ай бұрын
@@unitedtoptech6288 am providing only first name, last name and email the id is automatically generated (employee management system)
@numzikshiuaxing1600
@numzikshiuaxing1600 4 ай бұрын
As you didn't mention anything about postman,could you please tell me regarding what i should do in postman?I have to idea what url should I type or the localhost.
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
Just type the same URL as I have done in postman, It is just a tool for making API calls, please learn about it first
@numzikshiuaxing1600
@numzikshiuaxing1600 4 ай бұрын
@@unitedtoptech6288 Error: connect ECONNREFUSED 127.0.0.1:3000 Request Headers Content-Type: application/json User-Agent: PostmanRuntime/7.37.3 Accept: */* Postman-Token: be86e12b-13d6-4992-a219-ffec31712fba Host: localhost:3000 Accept-Encoding: gzip, deflate, br Connection: keep-alive I get this when I click send after typing the url.
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
Is your spring boot application running on port 3000?
@numzikshiuaxing1600
@numzikshiuaxing1600 4 ай бұрын
@@unitedtoptech6288 yeahh...I figured it out..thank you!
@unitedtoptech6288
@unitedtoptech6288 4 ай бұрын
Was that the issue?
@ArthurCnap
@ArthurCnap 6 ай бұрын
Hi, im having a problem with starting an application it throws: "Field studentRepository in com.project.ToDoList.Service.StudentService required a bean of type 'com.project.ToDoList.Repository.StudentRepository' that could not be found." Thought it might happen because there's no @Repository annotation but adding it didn't help. Also the informations about creating the table in run console do not appear, i have spring.jpa.show-sql=true and spring.jpa.generate-ddl=true in my aplication properties
@unitedtoptech6288
@unitedtoptech6288 6 ай бұрын
Please check if you have added autowired annotation to repository and service object variables
@ArthurCnap
@ArthurCnap 6 ай бұрын
@@unitedtoptech6288 I figured it out, guess there was a problem with MySQL Driver cause I was working on a project generated a few days ago. I took some random dependency from maven repo and that created all the problems. Thank you for the response mate
@unitedtoptech6288
@unitedtoptech6288 6 ай бұрын
ohh glad it woked for you now! welcome
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 55 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 25 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,3 МЛН
Create your FIRST CRUD RESTful API - Java, MySQL, Springboot, JPA, & Maven
18:38
Deep Dive into REST API Design and Implementation Best Practices
12:02
Software Developer Diaries
Рет қаралды 44 М.
How to read JSON data in Spring Boot and write to a database
23:36
Save HTML Form Data to a MySQL Database using PHP
24:38
Dave Hollingworth
Рет қаралды 195 М.
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 18 МЛН
Как противодействовать FPV дронам
44:34
Стратег Диванного Легиона
Рет қаралды 75 М.
Проверил, как вам?
0:58
Коннор
Рет қаралды 345 М.