Skip to content

uberlannunes/spring-batch-csv-to-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Spring Batch Import CSV to Database

This is a Java Spring Batch project that allows you to import CSV files into a database. It provides two different approaches for importing: multi-threaded and single-threaded.

Technology Stack

The project utilizes the following technologies and frameworks:

  • Java
  • Spring Boot
  • Spring Batch
  • Spring Batch Integration
  • Maven (for build and dependency management)
  • PostgreSQL
  • Docker

Prerequisites

Before running this project, make sure you have the following prerequisites installed:

  • Java JDK (version 17 or higher)
  • Maven (for building and managing dependencies)
  • Docker

Setup

  1. Clone the repository:
git clone https://github.com/uberlannunes/spring-batch-csv-to-db.git
  1. Navigate to the project directory:
cd spring-batch-csv-to-db
  1. Execute docker compose command to setup the Database
docker compose up -d
  1. Run the Application
./mvnw spring-boot:run

NOTE: By default the project runs with Multi Thread approach, to switch to Single Thread follow the steps:

  1. Comment the @Configuration on ImportCsvToDbMultiThreadJob.java
  2. Uncomment the @Configuration on ImportCsvToDbSingleThreadJob.java

About

Project to import data from CSV files to DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages