# thanu6/spring-boot-sample architecture

> Architecture diagram of the GitHub repository thanu6/spring-boot-sample, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thanu6/spring-boot-sample
- Repository: https://github.com/thanu6/spring-boot-sample

## Overview

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: [`src/main/java/com/dockerforjavadevelopers/hello/HelloController.java`](https://github.com/thanu6/spring-boot-sample/blob/master/src/main/java/com/dockerforjavadevelopers/hello/HelloController.java) (Greeting endpoint), [`src/main/java/com/dockerforjavadevelopers/hello/Application.java`](https://github.com/thanu6/spring-boot-sample/blob/master/src/main/java/com/dockerforjavadevelopers/hello/Application.java) (Spring Boot startup), [`Dockerfile`](https://github.com/thanu6/spring-boot-sample/blob/master/Dockerfile) (Docker container)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_service["Web service"]
  node_application["Spring Boot startup<br/>[Application.java]"]
  node_controller["Greeting endpoint"]
end

subgraph group_deployment["Container deployment"]
  node_container["Docker container"]
end

node_client(("HTTP client"))

node_client -->|"requests &#96;/&#96;"| node_controller
node_controller -->|"returns greeting"| node_client
node_application -.->|"component scans"| node_controller
node_container -->|"runs service"| node_application

click node_application "https://github.com/thanu6/spring-boot-sample/blob/master/src/main/java/com/dockerforjavadevelopers/hello/Application.java"
click node_controller "https://github.com/thanu6/spring-boot-sample/blob/master/src/main/java/com/dockerforjavadevelopers/hello/HelloController.java"
click node_container "https://github.com/thanu6/spring-boot-sample/blob/master/Dockerfile"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_application,node_controller,node_client toneBlue
class node_container toneAmber
```

## Components

### Web service

- [Spring Boot startup](https://github.com/thanu6/spring-boot-sample/blob/master/src/main/java/com/dockerforjavadevelopers/hello/Application.java): `src/main/java/com/dockerforjavadevelopers/hello/Application.java`
- [Greeting endpoint](https://github.com/thanu6/spring-boot-sample/blob/master/src/main/java/com/dockerforjavadevelopers/hello/HelloController.java): `src/main/java/com/dockerforjavadevelopers/hello/HelloController.java`

### Container deployment

- [Docker container](https://github.com/thanu6/spring-boot-sample/blob/master/Dockerfile): `Dockerfile`

### Other components

- **HTTP client**

## Connections

- HTTP client → Greeting endpoint: requests `/` (evidence: `README.md`)
- Greeting endpoint → HTTP client: returns greeting (evidence: `src/main/java/com/dockerforjavadevelopers/hello/HelloController.java`)
- Spring Boot startup → Greeting endpoint: component scans
- Docker container → Spring Boot startup: runs service (evidence: `README.md`)
