00:05 Adding images to new products in the UI. 02:08 Exploring the new UI and image handling in the add product page 04:08 Adding a product with image using separate methods for product and image 06:12 Specify image content type and storage method 08:21 Adding product with image in Spring 10:25 Data sent to service layer for adding product and image storage 12:27 Adding a product with an image in a Spring project 14:41 Troubleshooting image display issue 16:57 Adding a new product with an image and handling URL fetching
Reason for axios error- it only works when you set your image product name as imageFile. might be tightly coupled. you can see it only allows product name imageFile in react code AddProduct.jsx file line 30.
Thank you for the series, I really needed this! As I am preparing for my interview. Also can you please tell about what are the MVC classes in the code, I got that model is our Product class but what are the others? This question was asked in my interview.
Why I am unable to use setImageName ,setImageType methods in product sevice class , sir, are you added any dependency to it or you wrote method in the product class
@@khushalchandak8544 after adding lombok the issue cleared but i am unable to add product in console it showing as Failed to load resource: the server responded with a status of 400 ( ) : 8001/ apüproduct: 1 @ Error adding product: AxiosError (anonymous) @ AddProduct .jsx:47 AddProduct . jsx: 47 in post man it showing as -- "message": "Failed to parse multipart servlet request", "path": "/api/product" can you know the solution please reply
@@manikandan2890 Try to see in the console what the error is If it is something like could not execute statement, then you need to do this: ALTER TABLE product MODIFY image_date LONGBLOB;
Why I am unable to use setImageName ,setImageType methods in product sevice class , sir, are you added any dependency to it or you wrote method in the product class? Hepl me out....!!
Why I am unable to use setImageName ,setImageType methods in product sevice class , sir, are you added any dependency to it or you wrote method in the product class? In Spring Boot Project Video Number = #25 Hepl me out....!!
I am getting an error saying update jta in spring, i am using mysql database when i try to change the attributes of product i am getting this error update jta can anyone resolve it
@PostMapping(value="/product") public ResponseEntity addProduct(@RequestPart Product prod, @RequestPart MultipartFile imageFile){ try{ Product product = productService.addProduct(prod, imageFile); return new ResponseEntity(product, HttpStatus.CREATED); } catch(Exception e){ return new ResponseEntity(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } } I did the same but I am facing an issue while adding the product. It says Resolved [org.springframework.web.multipart.support.MissingServletRequestPartException: Required part 'prod' is not present.]
*Sir, Why we have stopped making Design Pattern videos? I don't think someone can explain better than you in limited time.*
hi sir , continue the series for us
Another excellent video on the Spring Boot framework.
Really enjoying the series, Thanku
Something tells me that by the end of this playlist, I'll be greeting people like, "Hey Alien!".
00:05 Adding images to new products in the UI.
02:08 Exploring the new UI and image handling in the add product page
04:08 Adding a product with image using separate methods for product and image
06:12 Specify image content type and storage method
08:21 Adding product with image in Spring
10:25 Data sent to service layer for adding product and image storage
12:27 Adding a product with an image in a Spring project
14:41 Troubleshooting image display issue
16:57 Adding a new product with an image and handling URL fetching
Reason for axios error- it only works when you set your image product name as imageFile.
might be tightly coupled. you can see it only allows product name imageFile in react code AddProduct.jsx file line 30.
Thank you for the series, I really needed this! As I am preparing for my interview.
Also can you please tell about what are the MVC classes in the code, I got that model is our Product class but what are the others? This question was asked in my interview.
Hi you have to tell about view and controller parts also
can you please make video for apache kafka and how we can use with spring boot.
Thank you for the video
Upload Front end implementation video also The React Part also
Why I am unable to use setImageName ,setImageType methods in product sevice class , sir, are you added any dependency to it or you wrote method in the product class
can anyone reply who knows the solution
Go to setting ->build,execution,development -> annotations processors -> tick the enable annotation processing
Then again restart the ide or configure the lombok plugin its not install then install it
@@khushalchandak8544 enabled but not working, still it shows to create a method on product class for setimagename and setimagetype
@@khushalchandak8544 after adding lombok the issue cleared but i am unable to add product in console it showing as
Failed to load resource: the server responded with a status of 400 ( )
: 8001/ apüproduct: 1 @
Error adding product: AxiosError
(anonymous) @ AddProduct .jsx:47
AddProduct . jsx: 47
in post man it showing as -- "message": "Failed to parse multipart servlet request",
"path": "/api/product"
can you know the solution please reply
This video has little confused of explanation, so u will re-explain of that topic in another video detailing.... plz sir do it
was here!
why i get alert message of " error adding product" ?
same am getting did it resolved for u ???
@@manikandan2890 Try to see in the console what the error is
If it is something like could not execute statement, then you need to do this:
ALTER TABLE product MODIFY image_date LONGBLOB;
@@MohammadKhan-ibnkhan Thank you it worked
generating getters and setters for Product worked for me
Why I am unable to use setImageName ,setImageType methods in product sevice class , sir, are you added any dependency to it or you wrote method in the product class?
Hepl me out....!!
did you create the setter methods using lombok?
Install lombok plugin in the IDE.. then you will get the getters ,setters and constructors generated automatically and your problem will be fixed
its me or we have nothing in the description. Link to the new UI
Please provide link of java file
desc is a keyword in sql so that's why it not getting
Did anyone faced application/octet-stream is not supported issue while uploading image?
Why I am unable to use setImageName ,setImageType methods in product sevice class , sir, are you added any dependency to it or you wrote method in the product class?
In Spring Boot Project Video Number = #25
Hepl me out....!!
Might be , your lombok is not working . You should generate getter and setters for Product .
I am getting an error saying update jta in spring, i am using mysql database when i try to change the attributes of product i am getting this error update jta can anyone resolve it
Why Dont you use DJango insted of this?
its easy to handle images... plase answer,
sir error in adding product
I'm getting error adding the product in console it says axiosError..how can I resolve
@@ANISHREDDYPEDDIREDDY yes bro , it worked after I assign tha variable names same as in the video especially multipart- imageFile
I have same error message, How can fix that, bro
@@ucLe-ux7zp make sure u type npm i vite before you run the frontend file and follow the same steps and variablename used in the vdo
@@cheguevara1396 I still have the error, what I have to do now?
@@ucLe-ux7zp same
34th comment
MY dates are not saving properly after applying @JsonFormat, can someone help to resolve this issue
@PostMapping(value="/product")
public ResponseEntity addProduct(@RequestPart Product prod, @RequestPart MultipartFile imageFile){
try{
Product product = productService.addProduct(prod, imageFile);
return new ResponseEntity(product, HttpStatus.CREATED);
}
catch(Exception e){
return new ResponseEntity(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
}
}
I did the same but I am facing an issue while adding the product. It says
Resolved [org.springframework.web.multipart.support.MissingServletRequestPartException: Required part 'prod' is not present.]
facing same issue ... you found solution?
same, but for me it says the image part is not present
What is the resolution?
the prod need to change it as product because in frontend it defined like that try its realy works
@@karanpartap4263 the name of the image File and product nust be same as the vedio try it