spring-framework-basics

This project showcases the fundamental workings of the Spring Framework in Java. It was developed as part of a code challenge to demonstrate an understanding of Spring Framework and to illustrate key programming paradigms.

MIT License

Stars
0
Committers
2

Spring Framework Basics

This project showcases the fundamental workings of the Spring Framework in Java. It was developed as part of a code challenge to demonstrate an understanding of Spring Framework and to illustrate key programming paradigms.

Table of Contents

Summary

This project showcases the integration of Spring Batch and Spring Boot to process and serve data. It is organized into two subprojects:

  • Batch: a Spring Batch application.
  • MS: a Spring Boot microservice.

Follow the instructions below to set up and run the applications.

Prerequisites

  • Java 21
  • Maven 3.9+

Getting Started

To get started, follow these steps:

Using IntelliJ IDEA

  1. Clone the repository.
  2. Open the project in IntelliJ IDEA.
  3. Press 'Run' on the respective main class of each subproject:
    • Run Batch first to initiate the batch processing.
    • Once Batch has completed, a folder named DB will be created at the project root. This folder will contain an H2 database file from which the microservice will retrieve data.
    • Run MS to start the microservice.

Using Command Line

Alternatively, you can use Maven to compile the JAR files and run them from the command line:

# Run Batch
cd Batch
mvn clean install
java -jar target/batch-1.0-SNAPSHOT.jar

# Start MS after running batch
cd ../MS
mvn clean install
java -jar target/ms-1.0-SNAPSHOT.jar

Authors

  • Giovanbattista Abbate - giabb

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Billie Thompson - Provided README Template - PurpleBooth