CSV file upload using Spring Boot | persist the data to database | Step by Step tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 37

  • @mohamedtomori4
    @mohamedtomori4 ปีที่แล้ว +2

    Here some great topics to teach :
    1 Caching with Redis
    2 Spring Batch with multithreading and retry mechanism
    3 Distributed Transactions in microservices architecture

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Thanks for the suggestion.
      Already planned

  • @viewer_evgeniy
    @viewer_evgeniy ปีที่แล้ว

    That's quite interesting because I've just started some small selenium, csv reading and uploading practice with just one difference - I don't want to use Spring because I think it brings an overcomplication to such a modest functionality of my project. But so-called butch updates were one of my concerns in terms of "how to do it without spring" or even how to do it without even hibernate - just with an old good jdbc api. And here is your video (even though it's about spring lol)...

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Spring batch is coming soon

  • @jnayehsirine6222
    @jnayehsirine6222 ปีที่แล้ว

    Hi , spring Batch can make good fit too ! once again thank you for this valuable contribution

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Sure,
      Coming soon 😁

  • @faixan13
    @faixan13 ปีที่แล้ว

    Awesome. Learned new stuff today. Thanks

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it!

  • @Rajnish089
    @Rajnish089 ปีที่แล้ว

    Great explanation brother

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Glad you liked it

  • @argjendzuka6289
    @argjendzuka6289 2 หลายเดือนก่อน

    Hey @Bouali Ali, this is so helpful. Thank you very much. Can you do one video now for CSV download with this project to continue for downloading file from database?

  • @VarshaGit
    @VarshaGit 4 หลายเดือนก่อน

    Hello, nice video. But can you explain when would we use spring batch and when would we use the other methods for csv file upload like this one?

  • @mokhtarzouari1240
    @mokhtarzouari1240 2 หลายเดือนก่อน

    hi M @Bouali Ali if in the csv file there are fields mandatory et other optional how i do

  • @maalelmarwen3002
    @maalelmarwen3002 11 หลายเดือนก่อน

    Hello,
    Thank you for the video, very interesting.
    I want to know, if my .csv file doesn't have title on each column. How can I make a strategy for reading my file?

    • @BoualiAli
      @BoualiAli  8 หลายเดือนก่อน

      just ignore the first line

  • @brahmareddylingam8283
    @brahmareddylingam8283 2 หลายเดือนก่อน

    Hi Bouali,
    In swagger, it's not showing the choose file option , it's showing only plain,
    Try it once

  • @anon_geek
    @anon_geek ปีที่แล้ว

    Hey Ali, your videos have been quite informative and have learnt a lot from them especially in spring security with jwt tokens and Oauth2, however If I want to combine the jwt and Oauth2, how should I achieve that as the client or the front-end application will send me a valid access token to the backend so that the user could login to the user dashboard, but I didn't find any resource on this issue

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      I will publish.a video about that soon enough

    • @anon_geek
      @anon_geek ปีที่แล้ว

      @@BoualiAli would it be about setting up an Authorization Server on the backend using Jwt with access and refresh tokens?
      Also regarding the previous video of jwt, if I want to add Roles in the jwt for claims like Admin then how should I go about it, because your implementation was different from all the other resources available on the internet and I didn't quite yet understand how we didn't create a userdetailsService class and how we implemented the User class with the model User and didn't implement the Userdetails interface

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      @@anon_geek i published videos covering all you asked about.
      Subscribe and enable the notifications and you won’t miss any new video
      It is really hard to answer everyone separately.
      Enjoy it

  • @sadeepaalwis5938
    @sadeepaalwis5938 ปีที่แล้ว

    great informative video simple and precise thank you Bou ❤, can you please do some on avro schemas with event publishing and consuming

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +1

      Happy you liked it!
      Coming next week

  • @ViralAiStories-d7q
    @ViralAiStories-d7q 11 หลายเดือนก่อน

    Interesting☺.Thank you

    • @BoualiAli
      @BoualiAli  8 หลายเดือนก่อน

      Glad you think so!

  • @hassanaskar5
    @hassanaskar5 7 หลายเดือนก่อน

    i think after uplaoding the csv file it's better to use spring batch to save the info in csv file. right?

    • @BoualiAli
      @BoualiAli  7 หลายเดือนก่อน +1

      right, that's why the video I released after that was Spring batch 😃
      You need to enable the notifications and follow the publish timeline.
      this is how I do things

  • @adarshmishra742
    @adarshmishra742 6 หลายเดือนก่อน

    Please can you suggest some solution for, let say i have 500 student , but before saving them to database firstly i have to get max roll number then add one to it to make new roll number then save data to database for that new roll number, as to saving 500 records with more then 35 csv header(column) and have to save data in different-different table taking 2 to 3 min to save so i had used multithreading concept and time comes to 10 to 15 s but problem i am facing is of duplicate roll number as database get read by multiple thread before saving new record, (let say i do not want to make roll number unique in databse) (need application level solution) i have use Transactional annotation and also make method syncronized but problem not solved , please suggest me some solution that i may have to try, thank you in advance 🤗

  • @ramadanlotfe829
    @ramadanlotfe829 ปีที่แล้ว

    fancy content 🤩

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Happy you liked it!

  • @hieunguyen0801
    @hieunguyen0801 ปีที่แล้ว

    Hope to release a video about spring boot microservices using RabbitMQ or Kafka

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Kafka is coming next week

  • @veereshdeepak9466
    @veereshdeepak9466 10 หลายเดือนก่อน

    Please make a vedio how to validate using csv file from scratch like
    - how to create a csv file,
    - why we use it
    - how to do the validation
    Please

  • @pabitrabera5454
    @pabitrabera5454 ปีที่แล้ว

    Sir can you make special vedio on spring boot distributed tracing using zipkin.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว

      Already done, check the microservices video

    • @pabitrabera5454
      @pabitrabera5454 ปีที่แล้ว

      @@BoualiAli I know that but i don't know why in my zipkin dashboard always shown span 1 in the span tab , though my request goes through 3 services. For that reason sir if you help me find out what's ths problem??