Importing CSV Data into PostgreSQL using Spring Batch

Published: 20 May 2024
on channel: The Tech Mojo
2,394
53

This tutorial will build a Spring boot application that uses Spring Batch to import CSV content into Postgres SQL DB. We will use chunk-based processing for reading content from large CSV files, process it, and then store the data in Postgres SQL. For managing the database migrations we will use Flyway.

00:00 Introduction to Spring Batch
04:49 Key Components of Spring Batch Application
09:16 Importing CSV Data to PostgreSQL Database using Spring Batch
09:48 Creating Spring Boot Project
12:09 Running PostgresSQL Docker Instance
13:19 Configuring DB Properties in Spring Boot
16:33 Define Domain Model for Customer
18:44 Creating JPA Repository
19:21 Setting up Flyway Migration for Spring Boot
23:20 Configuring Spring Batch
24:21 Configuring CSV Item Reader Bean
32:52 Configuring CSV Item Writer Bean
34:31 Configuring Step and Job
39:30 Creating a Trigger to Start Batch Job
44:40 Creating a Listener for Spring Batch Job
47:17 Passing Job Parameters
53:24 Validating Job Parameter
Thank you for watching!

Configuring Flyway in Spring Boot:    • Using Flyway for Managing Database Migrati...  
Download the complete project source code: https://github.com/StackTipsLab/sprin...

❤️ Get in touch:
Website: https://stacktips.com
Twitter:   / asknilan  
Github: https://github.com/nilandev


On this page of the site you can watch the video online Importing CSV Data into PostgreSQL using Spring Batch with a duration of hours minute second in good quality, which was uploaded by the user The Tech Mojo 20 May 2024, share the link with friends and acquaintances, this video has already been watched 2,394 times on youtube and it was liked by 53 viewers. Enjoy your viewing!