Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Anusha0503/spring-boot-java-example

Open more actions menu
 
 

Repository files navigation

Spring Boot Java Example

Build

This is an example Spring Boot app using Java.

  • Uses Jetty web container
  • Starts HTTP and HTTPs listener
  • Enables some actuator endpoints (health, metrics)

Running The App

Ensure you have Java 8 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/
curl -v -k https://localhost:8443/

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

 
 
 

Contributors

Languages

  • Java 50.3%
  • Python 13.7%
  • Makefile 13.6%
  • Shell 12.9%
  • Dockerfile 9.5%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.