Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.85 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.85 KB

Spring Boot Hexagonal

Project shows, how to use hexagonal architecture in your spring boot applications

Hexagonal Architecture

Implemented integrations:

  • Mysql (Spring Data JPA)
  • Redis (Spring Data Redis)

Prerequisites

  • JDK 17
  • this project uses Lombok, so enable annotation processing in your IDE
  • this project uses Testcontainers, so run Docker on your local machine

Getting Started

gradle testBootRun

Project Structure

└──com/
    └── yourcompany/
        ├── adapter/                # Adapter logic
        │   ├── in/                 # Incoming requests adapters
        │   │   └── http/
        │   └── out/                # Outgoing requests adapters
        │       ├── cache/
        │       ├── kafka/
        │       └── persistense/
        ├── application             # Core logic
        │   ├── domain/
        │   │   ├── model/
        │   │   └── service/
        │   └── port/               # Core logic API
        │       ├── in/
        │       └── out/
        └── common/                 # Neither business logic nor adapters

See More