Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 versions

Also, 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)