Sample Template for Spring Boot Applications conforming to 12 factor app. Demo exposes a rest service backed by data from a database.
grade clean build
to build
gradle bootRun
to run or use Intellij Run Configuration
default
the absence of a profile means the service will use an in-memory databaselogtoconsole
this use stand logging format rather and json logstash
- Method: GET
- Content Type: `application/json'
- URI:
/name
Message Body:-
{
}
/health
Returns Spring Boot Actuator health status
- Java 8 JDK
None
Service can be run either locally or using Docker.
docker build -t noms-digital-studio/spring-boot-noms-template .
then
docker run -d -p 8080:8080 noms-digital-studio/spring-boot-noms-template
./gradlew build
then
java -jar build/libs/spring-boot-noms-template-*-.jar
./gradlew test
Feature Files in /test/resources/features
These demonstrate the behaviour of the application
Findbugs
Configuration in /config/checkstyle and /config/findbugs
See kd