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

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

КОМЕНТАРІ •

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

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

  • @faixan13
    @faixan13 Рік тому

    Awesome. Learned new stuff today. Thanks

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

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

  • @brahmareddylingam8283
    @brahmareddylingam8283 2 місяці тому

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

  • @mokhtarzouari1240
    @mokhtarzouari1240 2 місяці тому

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

  • @Rajnish089
    @Rajnish089 Рік тому

    Great explanation brother

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

  • @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  7 місяців тому

      just ignore the first line

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

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

  • @ViralAiStories-d7q
    @ViralAiStories-d7q 11 місяців тому

    Interesting☺.Thank you

    • @BoualiAli
      @BoualiAli  7 місяців тому

      Glad you think so!

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

    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 🤩

  • @hieunguyen0801
    @hieunguyen0801 Рік тому

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

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

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