A simple Spring Boot project for experimenting with the framework.
The application uses Jetty rather than the default Tomcat Web server. See spring-boot-starter-jetty
in the POM file.
The root endpoint outputs a parameterised message. The parameters are picked up from Java system properties and environment variables.
The project has Docker file and a shell script to build and run the application using Docker.
./mvnw clean package
java -jar target/spring-boot-sandbox-1.0-SNAPSHOT.jar
Or
./mvnw spring-boot:run
- http://localhost:8080/actuator/info
- http://localhost:8080/actuator/metircs
- http://localhost:8080/actuator/health
- http://localhost:8080/actuator/trace
- http://localhost:8080/actuator/beans
./run.sh
http://localhost:8080/
curl -H "X-Correlation_ID: 1234" http://localhost:8080/greeting
To view via a local server
./mvnw allure:serve
To generate
./mvnw allure:report
- Slf4j
- @MockBean
- @Bean
- @Configuration
- Profiles
- Lombok