#25 Project using Spring Add Product with Image

Поділитися
Вставка
  • Опубліковано 12 гру 2024

КОМЕНТАРІ • 59

  • @lootster
    @lootster 3 місяці тому

    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

  • @harshverm776
    @harshverm776 5 місяців тому +13

    *Sir, Why we have stopped making Design Pattern videos? I don't think someone can explain better than you in limited time.*

  • @santhoshl-zq1op
    @santhoshl-zq1op 5 місяців тому +4

    hi sir , continue the series for us

  • @naraynwetal6544
    @naraynwetal6544 4 місяці тому

    Another excellent video on the Spring Boot framework.

  • @Devivl
    @Devivl 4 місяці тому +1

    Something tells me that by the end of this playlist, I'll be greeting people like, "Hey Alien!".

  • @VarshaRavula
    @VarshaRavula 27 днів тому +1

    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.

  • @naraynwetal6544
    @naraynwetal6544 4 місяці тому

    Really enjoying the series, Thanku

  • @sudippal8024
    @sudippal8024 3 дні тому

    Great explanation

  • @AbhishekTiwari-nw5sq
    @AbhishekTiwari-nw5sq 5 місяців тому +1

    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.

    • @tamaladhikari7950
      @tamaladhikari7950 5 місяців тому

      Hi you have to tell about view and controller parts also

  • @jigarpatel6296
    @jigarpatel6296 4 місяці тому +1

    can you please make video for apache kafka and how we can use with spring boot.

  • @mekalaramesh2787
    @mekalaramesh2787 5 місяців тому +5

    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

    • @mekalaramesh2787
      @mekalaramesh2787 5 місяців тому +1

      can anyone reply who knows the solution

    • @khushalchandak8544
      @khushalchandak8544 4 місяці тому +4

      Go to setting ->build,execution,development -> annotations processors -> tick the enable annotation processing

    • @khushalchandak8544
      @khushalchandak8544 4 місяці тому +3

      Then again restart the ide or configure the lombok plugin its not install then install it

    • @mekalaramesh2787
      @mekalaramesh2787 4 місяці тому

      @@khushalchandak8544 enabled but not working, still it shows to create a method on product class for setimagename and setimagetype

    • @mekalaramesh2787
      @mekalaramesh2787 4 місяці тому

      @@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

  • @sudippal8024
    @sudippal8024 3 дні тому

    love your video

  • @vishaldindalkop294
    @vishaldindalkop294 3 місяці тому

    Thank you for the video

  • @ronatkumarmuni4076
    @ronatkumarmuni4076 4 місяці тому

    Upload Front end implementation video also The React Part also

  • @DevGhost97
    @DevGhost97 12 днів тому

    thank you sir

  • @dragoon4060
    @dragoon4060 5 місяців тому

    its me or we have nothing in the description. Link to the new UI

  • @PriyanshuSoni-e3e
    @PriyanshuSoni-e3e 4 місяці тому +1

    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....!!

    • @tabishnaved
      @tabishnaved 4 місяці тому

      did you create the setter methods using lombok?

    • @sughoshkn2728
      @sughoshkn2728 3 місяці тому +1

      Install lombok plugin in the IDE.. then you will get the getters ,setters and constructors generated automatically and your problem will be fixed

  • @zain121-b7i
    @zain121-b7i 5 місяців тому +2

    why i get alert message of " error adding product" ?

    • @manikandan2890
      @manikandan2890 5 місяців тому

      same am getting did it resolved for u ???

    • @MohammadKhan-ibnkhan
      @MohammadKhan-ibnkhan 5 місяців тому +1

      @@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;

    • @Jhadtheelasainischalsatwikqame
      @Jhadtheelasainischalsatwikqame 3 місяці тому

      @@MohammadKhan-ibnkhan Thank you it worked

    • @devamsonigra2649
      @devamsonigra2649 Місяць тому

      generating getters and setters for Product worked for me

  • @velank7181
    @velank7181 5 місяців тому

    This video has little confused of explanation, so u will re-explain of that topic in another video detailing.... plz sir do it

  • @PriyanshuSoni-e3e
    @PriyanshuSoni-e3e 4 місяці тому

    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....!!

    • @ashishrai4138
      @ashishrai4138 3 місяці тому +1

      Might be , your lombok is not working . You should generate getter and setters for Product .

  • @SaiKrishna-xx5de
    @SaiKrishna-xx5de 3 місяці тому

    desc is a keyword in sql so that's why it not getting

  • @DEEPAK-q7u5h
    @DEEPAK-q7u5h Місяць тому

    Did anyone faced application/octet-stream is not supported issue while uploading image?

  • @paidimarrigayatri1423
    @paidimarrigayatri1423 5 місяців тому

    Please provide link of java file

  • @Bhanu-g8y
    @Bhanu-g8y 4 місяці тому

    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

  • @cheguevara1396
    @cheguevara1396 3 місяці тому

    I'm getting error adding the product in console it says axiosError..how can I resolve

    • @cheguevara1396
      @cheguevara1396 3 місяці тому

      @@ANISHREDDYPEDDIREDDY yes bro , it worked after I assign tha variable names same as in the video especially multipart- imageFile

    • @ucLe-ux7zp
      @ucLe-ux7zp 3 місяці тому

      I have same error message, How can fix that, bro

    • @cheguevara1396
      @cheguevara1396 3 місяці тому

      @@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-ux7zp
      @ucLe-ux7zp 3 місяці тому +1

      @@cheguevara1396 I still have the error, what I have to do now?

    • @dankman03
      @dankman03 Місяць тому

      @@ucLe-ux7zp same

  • @dankman03
    @dankman03 Місяць тому

    sir error in adding product

  • @lankahelth4002
    @lankahelth4002 5 місяців тому

    Why Dont you use DJango insted of this?
    its easy to handle images... plase answer,

  • @baseddavidbut-upsidedown
    @baseddavidbut-upsidedown 4 місяці тому

    was here!

  • @TechHacksmohitsharma
    @TechHacksmohitsharma 3 місяці тому

    34th comment

  • @ravisharma2406
    @ravisharma2406 4 місяці тому

    MY dates are not saving properly after applying @JsonFormat, can someone help to resolve this issue

  • @starbotgaming6807
    @starbotgaming6807 5 місяців тому +2

    @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-b7i
      @zain121-b7i 5 місяців тому +1

      facing same issue ... you found solution?

    • @karanpartap4263
      @karanpartap4263 5 місяців тому +1

      same, but for me it says the image part is not present

    • @yatishj6283
      @yatishj6283 3 місяці тому +2

      What is the resolution?

    • @SivanesanThulasiRaman
      @SivanesanThulasiRaman 3 місяці тому +1

      the prod need to change it as product because in frontend it defined like that try its realy works

    • @SivanesanThulasiRaman
      @SivanesanThulasiRaman 3 місяці тому

      @@karanpartap4263 the name of the image File and product nust be same as the vedio try it