Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giabb/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.
https://github.com/giabb/spring-framework-basics
java jpa maven spring-batch spring-boot spring-framework
Last synced: 27 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/giabb/spring-framework-basics
- Owner: giabb
- License: mit
- Created: 2024-06-28T16:20:12.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-06-30T11:55:00.000Z (4 months ago)
- Last Synced: 2024-09-29T00:03:20.957Z (about 1 month ago)
- Topics: java, jpa, maven, spring-batch, spring-boot, spring-framework
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](#summary)
- [Prerequisites](#prerequisites)
- [Getting Started](#getting-started)
- [Authors](#authors)
- [License](#license)
- [Acknowledgments](#acknowledgments)## 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:
```shell
# 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](https://github.com/giabb)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
- **Billie Thompson** - *Provided README Template* - [PurpleBooth](https://github.com/PurpleBooth)