00:04 Fetching and displaying individual product details 01:46 Troubleshooting server and database connectivity issues 03:26 Implementing GetByID method in Spring Boot project. 05:09 Implement proper handling of empty product responses 06:43 Using JSON format to change and specify data format 08:30 Using ResponseEntity to send status code and data in Spring Boot 10:05 Utilizing ResponseEntity for controlling status codes and data handling 11:43 Handling response entity for getting product by ID
As Navin said, returning null isn't a good idea, but it isn't a big deal in a course where the focus is Spring. If you wonder what would be the best practice, you can throw exceptions in the service layer and catch these exceptions in the controller layer and map to a proper status code
My everything performs as per your output but the only difference is my frontend is not showing date? Means not the old format not the type casted format. showing blank there. What cane be the issue sir?
After using the "getProductById" function, the product screen still displays "Loading...". Is there an issue with the React code, or is there something I might have written incorrectly?
After using the "getProductById" function, the product screen still displays "Loading...". Is there an issue with the React code, or is there something I might have written incorrectly?
sir getting error while runnning "npm run dev",sir please help to resolve it.also tried doing in the folder where all file are present but than also giving error of "vite permission denied".
After using the "getProductById" function, the product screen still displays "Loading...". Is there an issue with the React code, or is there something I might have written incorrectly?
Response Entity understood!!! keeping it simple while basics are focussed in each video. Great!!!
00:04 Fetching and displaying individual product details
01:46 Troubleshooting server and database connectivity issues
03:26 Implementing GetByID method in Spring Boot project.
05:09 Implement proper handling of empty product responses
06:43 Using JSON format to change and specify data format
08:30 Using ResponseEntity to send status code and data in Spring Boot
10:05 Utilizing ResponseEntity for controlling status codes and data handling
11:43 Handling response entity for getting product by ID
Sir you are not a normal human being. You are a Alien 💪😊 😊💪
Muy chas gracias. .. Desde venezuela!😲
As Navin said, returning null isn't a good idea, but it isn't a big deal in a course where the focus is Spring. If you wonder what would be the best practice, you can throw exceptions in the service layer and catch these exceptions in the controller layer and map to a proper status code
Understood Response Entity! Thank you!
8:50 "Thisisthedefaulthttpthatyouaregetting"?
Excellent sir G. ResponseEntity understood very well
Thank you
thank you sir
Super Naveen
11:15 ResponseEntity
Thank you for the video
thank you for this video sir
Thank you
thank you so much
solid stuff
thank you
nice
My everything performs as per your output but the only difference is my frontend is not showing date? Means not the old format not the type casted format. showing blank there. What cane be the issue sir?
NIce content!
Can we use html,css and js for the frontend instead of.jsx file
date is not fetching on frontend
Sir Java and python both languages are i know 20% which one study first?
Sir can we get a job by creating simple project or we need. To Go for complexity step by step 🤔🤔🤔
After using the "getProductById" function, the product screen still displays "Loading...". Is there an issue with the React code, or is there something I might have written incorrectly?
Yes facing the same problem. Let me know if you find the fix for it.
@@truthbetold_25 please refer to react ui and backend code in video description.
@@truthbetold_25 project is running fine.
@@truthbetold_25 Yes facing the same, From the postman the /api/product/5 works fine but fails over click
Just fixed the issue, getAllProducts as /api/products where as getProductById as /api/product/{id} it was a typo mistake 😅
🎉
Facing issue with data fetching. While returning the data is not by default converted into JSON format. What to do?
same issue data is not being fetched
was my issue, fixed with this line on top of the entity class, @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
After using the "getProductById" function, the product screen still displays "Loading...". Is there an issue with the React code, or is there something I might have written incorrectly?
Everything is working perfectly. Please refer to the React UI code and the backend code for this video, which can be found in the video description.
make a note that its @GetMapping("/product/{id}") in the controller and not productS /{id}
Sir it is showing cannot redefine property: File error while iam running the front end file
Front end is angular or react?
React
sir getting error while runnning "npm run dev",sir please help to resolve it.also tried doing in the folder where all file are present but than also giving error of "vite permission denied".
First, make sure to run npm install before npm run dev. If this doesn't resolve the issue, try cloning the repository again.
Ok
frontend code doesn't in the description sir plz provide it
already present in description.
frontend code not in description bro please provide
Thanks for pointing out, added now.
Where it is?
Please provide link of react
link is available in video description.
missing script:dev error is occuring. but the script { dev:vite } is present in my package.json
Delete node modules folder and try npm install or npm i -> both are same
After using the "getProductById" function, the product screen still displays "Loading...". Is there an issue with the React code, or is there something I might have written incorrectly?
no issue. please clone the react ui again. link can be found in description for both frontend and backend.
Most probably the getmapping has issue, change it to /product/{id}