Skip to content

jecklgamis/spring-boot-java-example

Repository files navigation

Spring Boot Java Example

Build

This is an example Spring Boot app using Java.

  • Uses Jetty web container
  • Enables some actuator endpoints (health, metrics)

Running The App

Ensure you have Java 21 or later.

./mvnw clean package
java -jar target/spring-boot-java-example.jar

Running The App Using Docker

Ensure you have a working Docker environment.

make dist image run

Testing The Endpoints

Point your browser to http://localhost:8080 or use curl in command line.

curl -v  http://localhost:8080/

Actuator endpoints:

  • http://localhost:8080/actuator/metrics
  • http://localhost:8080/actuator/health

About

An example SpringBoot app using Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published