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.
@harshverm7765 ай бұрын
*Sir, Why we have stopped making Design Pattern videos? I don't think someone can explain better than you in limited time.*
@lootster2 ай бұрын
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
@Devivl3 ай бұрын
Something tells me that by the end of this playlist, I'll be greeting people like, "Hey Alien!".
@santhoshl-zq1op5 ай бұрын
hi sir , continue the series for us
@naraynwetal65443 ай бұрын
Another excellent video on the Spring Boot framework.
@naraynwetal65443 ай бұрын
Really enjoying the series, Thanku
@mekalaramesh27874 ай бұрын
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
@mekalaramesh27874 ай бұрын
can anyone reply who knows the solution
@khushalchandak85444 ай бұрын
Go to setting ->build,execution,development -> annotations processors -> tick the enable annotation processing
@khushalchandak85444 ай бұрын
Then again restart the ide or configure the lombok plugin its not install then install it
@mekalaramesh27874 ай бұрын
@@khushalchandak8544 enabled but not working, still it shows to create a method on product class for setimagename and setimagetype
@mekalaramesh27874 ай бұрын
@@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
@AbhishekTiwari-nw5sq5 ай бұрын
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.
@tamaladhikari79505 ай бұрын
Hi you have to tell about view and controller parts also
@jigarpatel62964 ай бұрын
can you please make video for apache kafka and how we can use with spring boot.
@ronatkumarmuni40763 ай бұрын
Upload Front end implementation video also The React Part also
@vishaldindalkop2942 ай бұрын
Thank you for the video
@PriyanshuSoni-e3e3 ай бұрын
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....!!
@tabishnaved3 ай бұрын
did you create the setter methods using lombok?
@sughoshkn27283 ай бұрын
Install lombok plugin in the IDE.. then you will get the getters ,setters and constructors generated automatically and your problem will be fixed
@PriyanshuSoni-e3e3 ай бұрын
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....!!
@ashishrai41383 ай бұрын
Might be , your lombok is not working . You should generate getter and setters for Product .
@baseddavidbut-upsidedown3 ай бұрын
was here!
@velank71815 ай бұрын
This video has little confused of explanation, so u will re-explain of that topic in another video detailing.... plz sir do it
@zain121-b7i4 ай бұрын
why i get alert message of " error adding product" ?
@manikandan28904 ай бұрын
same am getting did it resolved for u ???
@MohammadKhan-ibnkhan4 ай бұрын
@@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;
@Jhadtheelasainischalsatwikqame2 ай бұрын
@@MohammadKhan-ibnkhan Thank you it worked
@devamsonigra2649Ай бұрын
generating getters and setters for Product worked for me
@dragoon40604 ай бұрын
its me or we have nothing in the description. Link to the new UI
@SaiKrishna-xx5de2 ай бұрын
desc is a keyword in sql so that's why it not getting
@DEEPAK-q7u5hАй бұрын
Did anyone faced application/octet-stream is not supported issue while uploading image?
@Bhanu-g8y3 ай бұрын
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
@paidimarrigayatri14235 ай бұрын
Please provide link of java file
@lankahelth40025 ай бұрын
Why Dont you use DJango insted of this? its easy to handle images... plase answer,
@cheguevara13963 ай бұрын
I'm getting error adding the product in console it says axiosError..how can I resolve
@cheguevara13963 ай бұрын
@@ANISHREDDYPEDDIREDDY yes bro , it worked after I assign tha variable names same as in the video especially multipart- imageFile
@ucLe-ux7zp3 ай бұрын
I have same error message, How can fix that, bro
@cheguevara13963 ай бұрын
@@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
@ucLe-ux7zp3 ай бұрын
@@cheguevara1396 I still have the error, what I have to do now?
@dankman03Ай бұрын
@@ucLe-ux7zp same
@dankman03Ай бұрын
sir error in adding product
@TechHacksmohitsharma3 ай бұрын
34th comment
@ravisharma24064 ай бұрын
MY dates are not saving properly after applying @JsonFormat, can someone help to resolve this issue
@starbotgaming68074 ай бұрын
@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.]
@zain121-b7i4 ай бұрын
facing same issue ... you found solution?
@karanpartap42634 ай бұрын
same, but for me it says the image part is not present
@yatishj62833 ай бұрын
What is the resolution?
@SivanesanThulasiRaman2 ай бұрын
the prod need to change it as product because in frontend it defined like that try its realy works
@SivanesanThulasiRaman2 ай бұрын
@@karanpartap4263 the name of the image File and product nust be same as the vedio try it