How thanu6/spring-boot-sample works
This is a minimal Spring Boot REST service: Spring starts the application, and a request to / receives the plain-text greeting. The README also documents running the service in Docker and testing it with curl. The controller and startup code are excerpted; the Docker relationship is documented, but the Dockerfile contents were not sampled.
Main entry points: HelloController.java Greeting endpoint · Application.java Spring Boot startup · Dockerfile Docker container
Components 4
Web service
- Spring Boot startup
src/main/java/com/dockerforjavadevelopers/hello/Application.java - Greeting endpoint
src/main/java/com/dockerforjavadevelopers/hello/HelloController.java
Container deployment
- Docker container
Dockerfile
Other components
- HTTP client
Connections 4
- HTTP client → Greeting endpoint: requests `/`
README.md - Greeting endpoint → HTTP client: returns greeting
src/main/java/com/dockerforjavadevelopers/hello/HelloController.java - Spring Boot startup → Greeting endpoint: component scans
- Docker container → Spring Boot startup: runs service
README.md