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
@mohomedrimzan89163 ай бұрын
Was going through so many tutorials but yet this was the successful one. Great One!!!
@unitedtoptech62883 ай бұрын
Great to hear! good luck
@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 Жыл бұрын
Wow glad to know man!!
@erenyeager45god4 ай бұрын
Your doing a good job and Straight to the point. 🎉 And thats a "PascalCase" Not a "camelCase".❤
@unitedtoptech62884 ай бұрын
Thank you so much!!!
@deeyt7573Ай бұрын
Simple & works fine
@unitedtoptech6288Ай бұрын
Fantastic
@jayaprakash1546 Жыл бұрын
Thank you for tutorial
@unitedtoptech628811 ай бұрын
Welcome!!
@GnanaPonneri3 ай бұрын
good Explanation
@unitedtoptech62883 ай бұрын
Thanks for liking!!
@telugudramaworld802111 ай бұрын
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
@unitedtoptech628811 ай бұрын
Yeah you need to create the database first using mysql code prior
@josephrexa54445 ай бұрын
Simply It works
@unitedtoptech62885 ай бұрын
cool
@user-ii6rb6nw8c Жыл бұрын
thank men
@unitedtoptech6288 Жыл бұрын
Any time
@user-qk2ph7jl1r Жыл бұрын
I didnt understand how you created the postman. Like how can you please tell? its not mentioned in the video
@unitedtoptech6288 Жыл бұрын
just click on create new workspace option, the one with the plus icon
@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 Жыл бұрын
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 Жыл бұрын
Where are you passing the id? I see u have mark , name and id columns
@mr.khiladi67969 ай бұрын
I am having the same problem, please somebody help us.
@mr.khiladi67969 ай бұрын
@@user-jm5ov9gx1v did you get your problem solved ? if yes, please help me also.
@charubabbar88078 ай бұрын
have your problem solved. I am getting same error.
@Strawhat-lu7ib8 ай бұрын
When iam posting json body one of the data is being stored as null in database
@unitedtoptech62888 ай бұрын
Check if you have the type as json in postman and if you are using express.json() in code
@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 Жыл бұрын
So you are performing update operation?
@mr.khiladi679610 ай бұрын
are you using inteellij idea community version? if so, it does not support spring.
@unitedtoptech62886 ай бұрын
wdym? i am using that one
@NikitaLazaroSevcisen4 ай бұрын
do you have this on some github repository??
@unitedtoptech62884 ай бұрын
No I don't have
@_KrishnaMoorthyR9 ай бұрын
Sir I send request post and getting output as empty object
@unitedtoptech62889 ай бұрын
Try changing the request from text to json
@rajeshkhannaarumugam669921 күн бұрын
will it work with maven
@unitedtoptech628821 күн бұрын
yeah the code will be the same
@mamtakurrey6405 Жыл бұрын
I didn't get table in MySQL
@unitedtoptech6288 Жыл бұрын
Can you check the code? or you getting any error?
@shreyamarya34523 ай бұрын
how to delete the data from Querry through this program
@unitedtoptech62883 ай бұрын
You mean through query parameter ?
@clarkkent3004Ай бұрын
W
@unitedtoptech6288Ай бұрын
thanks W
@charubabbar88078 ай бұрын
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
@unitedtoptech62888 ай бұрын
Are you sending response in code , that res send() thing ?
@gulshankataria77 Жыл бұрын
I am getting MySQL8 dialect has been deprecated..could you please help ?
@unitedtoptech6288 Жыл бұрын
I just did this last week, I didn't get any such things, did you select the java version same as me?
@manojprabhakar5286 Жыл бұрын
@@unitedtoptech6288 how can we insert multiple records in to mysql through postman by using nodejs can you please do a video sir
@unitedtoptech62886 ай бұрын
yep I did , you can send list of objects for that from postman
@siddhishinde80274 ай бұрын
Thank you sir, i have problem after the post and get my data is not reflecting in mysql workbench , please help me
@unitedtoptech62884 ай бұрын
What do you get as response? any errors?
@siddhishinde80274 ай бұрын
@@unitedtoptech6288 no errors sir
@siddhishinde80274 ай бұрын
@@unitedtoptech6288 no errors postman sending the request and the table is also created in mysql work bench only the data is not getting fetched
@unitedtoptech62884 ай бұрын
is it fetch all data or fetch by using an id alone?
@siddhishinde80274 ай бұрын
@@unitedtoptech6288 am providing only first name, last name and email the id is automatically generated (employee management system)
@numzikshiuaxing16004 ай бұрын
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.
@unitedtoptech62884 ай бұрын
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
@numzikshiuaxing16004 ай бұрын
@@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.
@unitedtoptech62884 ай бұрын
Is your spring boot application running on port 3000?
@numzikshiuaxing16004 ай бұрын
@@unitedtoptech6288 yeahh...I figured it out..thank you!
@unitedtoptech62884 ай бұрын
Was that the issue?
@ArthurCnap6 ай бұрын
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
@unitedtoptech62886 ай бұрын
Please check if you have added autowired annotation to repository and service object variables
@ArthurCnap6 ай бұрын
@@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