# kolorobot/spring-boot-thymeleaf architecture

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

- Interactive diagram: https://gitdiagram.com/kolorobot/spring-boot-thymeleaf
- Repository: https://github.com/kolorobot/spring-boot-thymeleaf

## Overview

This repository is a Spring Boot 2 / Thymeleaf web application, documented as runnable as a JAR or packaged as a WAR. Its user-facing workflow is to visit the application and sign in; the README documents demo credentials and login/dashboard screens. The tree also shows home-page handling, Thymeleaf examples, and security audit listeners. Source excerpts were not available, so links among controllers, templates, and security components are omitted rather than inferred; additional documented Thymeleaf dialects and WebJars are noted as capabilities, not assigned unsupported implementation links.

Main entry points: [`src/main/java/pl/codeleak/demos/sbt/Application.java`](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/Application.java) (Spring Boot Application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_application["Spring Boot Application<br/>[Application.java]"]
  node_war_initializer["WAR Initializer"]
  node_home_controller["Home Controller"]
end

subgraph group_views["Thymeleaf Views"]
  node_index["Home Template<br/>[index.html]"]
  node_layout["Page Layout<br/>[layout.html]"]
  node_fragments["Page Fragments"]
  node_form_view["Thymeleaf Form<br/>[th-form.html]"]
  node_objects_view["Thymeleaf Objects<br/>[th-objects.html]"]
  node_thymeleaf_objects["Thymeleaf Object Helpers"]
  node_text_templates["Text Template Support"]
  node_text_template["Text Template<br/>[text-template.txt]"]
end

subgraph group_security["Security Auditing"]
  node_audit_listener["Audit Event Listener"]
  node_application_audit_listener["Application Event Listener"]
end

subgraph group_config["Runtime Configuration"]
  node_runtime_config["Application Properties"]
end

node_user(("Visitor"))

node_user -->|"visits"| node_application

click node_application "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/Application.java"
click node_war_initializer "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/ServletInitializer.java"
click node_home_controller "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/home/HomeController.java"
click node_index "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/index.html"
click node_layout "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/layouts/layout.html"
click node_fragments "https://github.com/kolorobot/spring-boot-thymeleaf/tree/master/src/main/resources/templates/fragments"
click node_form_view "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/th-form.html"
click node_objects_view "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/th-objects.html"
click node_thymeleaf_objects "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/thymeleaf/ThymeleafObjects.java"
click node_text_templates "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/thymeleaf/ThymeleafTextTemplates.java"
click node_text_template "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/text/text-template.txt"
click node_audit_listener "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/security/AuditEventListener.java"
click node_application_audit_listener "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/security/AuditApplicationEventListener.java"
click node_runtime_config "https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/application.properties"

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_war_initializer,node_home_controller toneBlue
class node_index,node_layout,node_fragments,node_form_view,node_objects_view,node_thymeleaf_objects,node_text_templates,node_text_template toneAmber
class node_audit_listener,node_application_audit_listener toneMint
class node_runtime_config toneRose
class node_user toneIndigo
```

## Components

### Application

- [Spring Boot Application](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/Application.java): `src/main/java/pl/codeleak/demos/sbt/Application.java`
- [WAR Initializer](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/ServletInitializer.java): `src/main/java/pl/codeleak/demos/sbt/ServletInitializer.java`
- [Home Controller](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/home/HomeController.java): `src/main/java/pl/codeleak/demos/sbt/home/HomeController.java`

### Thymeleaf Views

- [Home Template](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/index.html): `src/main/resources/templates/index.html`
- [Page Layout](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/layouts/layout.html): `src/main/resources/templates/layouts/layout.html`
- [Page Fragments](https://github.com/kolorobot/spring-boot-thymeleaf/tree/master/src/main/resources/templates/fragments): `src/main/resources/templates/fragments`
- [Thymeleaf Form](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/th-form.html): `src/main/resources/templates/th-form.html`
- [Thymeleaf Objects](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/th-objects.html): `src/main/resources/templates/th-objects.html`
- [Thymeleaf Object Helpers](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/thymeleaf/ThymeleafObjects.java): `src/main/java/pl/codeleak/demos/sbt/thymeleaf/ThymeleafObjects.java`
- [Text Template Support](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/thymeleaf/ThymeleafTextTemplates.java): `src/main/java/pl/codeleak/demos/sbt/thymeleaf/ThymeleafTextTemplates.java`
- [Text Template](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/templates/text/text-template.txt): `src/main/resources/templates/text/text-template.txt`

### Security Auditing

- [Audit Event Listener](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/security/AuditEventListener.java): `src/main/java/pl/codeleak/demos/sbt/security/AuditEventListener.java`
- [Application Event Listener](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/java/pl/codeleak/demos/sbt/security/AuditApplicationEventListener.java): `src/main/java/pl/codeleak/demos/sbt/security/AuditApplicationEventListener.java`

### Runtime Configuration

- [Application Properties](https://github.com/kolorobot/spring-boot-thymeleaf/blob/master/src/main/resources/application.properties): `src/main/resources/application.properties`

### Other components

- **Visitor**

## Connections

- Visitor → Spring Boot Application: visits (evidence: `README.md`)
