# pisee/springboot-examples architecture

> Architecture diagram of the GitHub repository pisee/springboot-examples, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pisee/springboot-examples
- Repository: https://github.com/pisee/springboot-examples

## Overview

This repository is a Spring Boot example application, with employee-facing web and service components alongside demonstrations of persistence techniques and Spring patterns. The apparent employee workflow is a web endpoint backed by a service and repository, but no README or source excerpts were provided to verify calls or data flow; accordingly, the graph shows components without asserting connections. The tree also identifies JDBC, JPA relationship, and MyBatis examples, plus service-locator and static-class examples. These capabilities are inferred from paths and filenames, not inspected implementations.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and web"]
  node_application["Spring Boot app"]
  node_cli["CLI client<br/>[CliClient.java]"]
  node_emp_controller["Employee API<br/>[EmpController.java]"]
  node_hello_controller["Hello endpoint"]
  node_web_config["Web configuration<br/>[WebConfig.java]"]
  node_swagger["API documentation config<br/>[SwaggerConfig.java]"]
  node_advice["Controller advice"]
end

subgraph group_employee["Employee domain"]
  node_emp_service["Employee service<br/>[EmpService.java]"]
  node_emp_repository["Employee repository<br/>[EmpRepository.java]"]
  node_employee_model["Employee model<br/>[Employee.java]"]
  node_result_model["Result model<br/>[Result.java]"]
  node_forbidden_exception["Forbidden exception"]
end

subgraph group_persistence["Persistence examples"]
  node_jdbc_repo["JDBC repository"]
  node_springjdbc_repo["Spring JDBC repository"]
  node_jpa_entitymanager["JPA EntityManager"]
  node_jpa_spring["Spring Data JPA"]
  node_mybatis_annotation["Annotated MyBatis<br/>[CityMapper.java]"]
  node_mybatis_xml["XML MyBatis<br/>[CityDao.java]"]
  node_jpa_relations["JPA relation examples"]
end

subgraph group_patterns["Spring patterns"]
  node_service_locator["Service locator"]
  node_service_factory["Service factory"]
  node_service_examples["Service implementations"]
  node_static_example["Static class example<br/>[StaticClass.java]"]
  node_static_caller["Static caller example"]
end

click node_application "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/SpringbootExamplesApplication.java"
click node_cli "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/client/CliClient.java"
click node_emp_controller "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/controller/EmpController.java"
click node_hello_controller "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/controller/HelloController.java"
click node_web_config "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/configure/WebConfig.java"
click node_swagger "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/configure/SwaggerConfig.java"
click node_advice "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/controller/EmpControllerAdvice.java"
click node_emp_service "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/service/EmpService.java"
click node_emp_repository "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/repository/EmpRepository.java"
click node_employee_model "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/domain/Employee.java"
click node_result_model "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/domain/Result.java"
click node_forbidden_exception "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/exception/ForbiddenException.java"
click node_jdbc_repo "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/jdbc/EmpJdbcRepository.java"
click node_springjdbc_repo "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/springjdbc/EmpSpringJdbcRepository.java"
click node_jpa_entitymanager "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/jpa/entitymanager/EmpJpaRepository.java"
click node_jpa_spring "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/jpa/springjpa/EmpSpringJpaRepository.java"
click node_mybatis_annotation "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/mybatis/annotation/mapper/CityMapper.java"
click node_mybatis_xml "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/mybatis/xml/dao/CityDao.java"
click node_jpa_relations "https://github.com/pisee/springboot-examples/tree/master/src/main/java/com/doni/springboot/examples/persistence/jpa/relation"
click node_service_locator "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/servicelocator/configure/MyServiceLocatorFactoryBean.java"
click node_service_factory "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/servicelocator/configure/MyServiceFactory.java"
click node_service_examples "https://github.com/pisee/springboot-examples/tree/master/src/main/java/com/doni/springboot/examples/servicelocator/service"
click node_static_example "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/staticTests/StaticClass.java"
click node_static_caller "https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/staticTests/BeanForCallingStaticClass.java"

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_cli,node_emp_controller,node_hello_controller,node_web_config,node_swagger,node_advice toneBlue
class node_emp_service,node_emp_repository,node_employee_model,node_result_model,node_forbidden_exception toneAmber
class node_jdbc_repo,node_springjdbc_repo,node_jpa_entitymanager,node_jpa_spring,node_mybatis_annotation,node_mybatis_xml,node_jpa_relations toneMint
class node_service_locator,node_service_factory,node_service_examples,node_static_example,node_static_caller toneRose
```

## Components

### Application and web

- [Spring Boot app](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/SpringbootExamplesApplication.java): `src/main/java/com/doni/springboot/examples/SpringbootExamplesApplication.java`
- [CLI client](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/client/CliClient.java): `src/main/java/com/doni/springboot/examples/client/CliClient.java`
- [Employee API](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/controller/EmpController.java): `src/main/java/com/doni/springboot/examples/employee/controller/EmpController.java`
- [Hello endpoint](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/controller/HelloController.java): `src/main/java/com/doni/springboot/examples/employee/controller/HelloController.java`
- [Web configuration](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/configure/WebConfig.java): `src/main/java/com/doni/springboot/examples/employee/configure/WebConfig.java`
- [API documentation config](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/configure/SwaggerConfig.java): `src/main/java/com/doni/springboot/examples/employee/configure/SwaggerConfig.java`
- [Controller advice](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/controller/EmpControllerAdvice.java): `src/main/java/com/doni/springboot/examples/employee/controller/EmpControllerAdvice.java`

### Employee domain

- [Employee service](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/service/EmpService.java): `src/main/java/com/doni/springboot/examples/employee/service/EmpService.java`
- [Employee repository](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/repository/EmpRepository.java): `src/main/java/com/doni/springboot/examples/employee/repository/EmpRepository.java`
- [Employee model](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/domain/Employee.java): `src/main/java/com/doni/springboot/examples/employee/domain/Employee.java`
- [Result model](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/domain/Result.java): `src/main/java/com/doni/springboot/examples/employee/domain/Result.java`
- [Forbidden exception](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/employee/exception/ForbiddenException.java): `src/main/java/com/doni/springboot/examples/employee/exception/ForbiddenException.java`

### Persistence examples

- [JDBC repository](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/jdbc/EmpJdbcRepository.java): `src/main/java/com/doni/springboot/examples/persistence/jdbc/EmpJdbcRepository.java`
- [Spring JDBC repository](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/springjdbc/EmpSpringJdbcRepository.java): `src/main/java/com/doni/springboot/examples/persistence/springjdbc/EmpSpringJdbcRepository.java`
- [JPA EntityManager](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/jpa/entitymanager/EmpJpaRepository.java): `src/main/java/com/doni/springboot/examples/persistence/jpa/entitymanager/EmpJpaRepository.java`
- [Spring Data JPA](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/jpa/springjpa/EmpSpringJpaRepository.java): `src/main/java/com/doni/springboot/examples/persistence/jpa/springjpa/EmpSpringJpaRepository.java`
- [Annotated MyBatis](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/mybatis/annotation/mapper/CityMapper.java): `src/main/java/com/doni/springboot/examples/persistence/mybatis/annotation/mapper/CityMapper.java`
- [XML MyBatis](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/persistence/mybatis/xml/dao/CityDao.java): `src/main/java/com/doni/springboot/examples/persistence/mybatis/xml/dao/CityDao.java`
- [JPA relation examples](https://github.com/pisee/springboot-examples/tree/master/src/main/java/com/doni/springboot/examples/persistence/jpa/relation): `src/main/java/com/doni/springboot/examples/persistence/jpa/relation`

### Spring patterns

- [Service locator](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/servicelocator/configure/MyServiceLocatorFactoryBean.java): `src/main/java/com/doni/springboot/examples/servicelocator/configure/MyServiceLocatorFactoryBean.java`
- [Service factory](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/servicelocator/configure/MyServiceFactory.java): `src/main/java/com/doni/springboot/examples/servicelocator/configure/MyServiceFactory.java`
- [Service implementations](https://github.com/pisee/springboot-examples/tree/master/src/main/java/com/doni/springboot/examples/servicelocator/service): `src/main/java/com/doni/springboot/examples/servicelocator/service`
- [Static class example](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/staticTests/StaticClass.java): `src/main/java/com/doni/springboot/examples/staticTests/StaticClass.java`
- [Static caller example](https://github.com/pisee/springboot-examples/blob/master/src/main/java/com/doni/springboot/examples/staticTests/BeanForCallingStaticClass.java): `src/main/java/com/doni/springboot/examples/staticTests/BeanForCallingStaticClass.java`
