Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bpstelios10/spring-web-template
boilerplate code for spring-boot-web applications
https://github.com/bpstelios10/spring-web-template
gradle java21 junit5 logback metrics spring-boot-actuator spring-boot-validation spring-boot-web spring-security
Last synced: 5 days ago
JSON representation
boilerplate code for spring-boot-web applications
- Host: GitHub
- URL: https://github.com/bpstelios10/spring-web-template
- Owner: bpstelios10
- Created: 2024-02-02T19:50:27.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-05-14T18:22:19.000Z (6 months ago)
- Last Synced: 2024-05-15T14:54:28.104Z (6 months ago)
- Topics: gradle, java21, junit5, logback, metrics, spring-boot-actuator, spring-boot-validation, spring-boot-web, spring-security
- Language: Java
- Homepage:
- Size: 192 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Web template to avoid boilerplate code
This project only provides dependencies spring-web related, some logs, actuator for metrics and lombok.
The main responsibility here is to try and keep dependencies to latest versionsAlso, containers were added since in today's world almost everything lives in containers.
So, a Dockerfile with security and following docker best practises, for java applications, was added. Docker-compose as
well, to make executions easier (escpecially in branches with more than 1 containers, like dbs, mocks etc)## Usage
Copy the project and change `application_name` in configuration and packages
## List of branches with extra spring features
* functional-controller -> functional controller using features like reading path param, request body, validation on
input data
* basic-auth -> on top of functional controller, spring security with basic auth was added. different roles and
different endpoints to mix it up
* spring-data-h2 -> service that uses spring-data-jpa with h2 for local executions and postgres for docker-compose
* spring-data-rest -> used spring-data-rest to create different APIs based on repository (db-centric architecture)