2022-12-02 05:19:05 +09:00
🚨
2022-12-01 20:26:25 +09:00
2022-11-29 22:09:17 +09:00
2022-12-02 05:19:05 +09:00
2022-11-29 22:09:17 +09:00
🔖 v1.0.1
2022-11-30 05:38:50 +09:00
2022-11-29 22:09:17 +09:00
2022-11-29 22:09:17 +09:00
2022-11-29 22:09:17 +09:00
2022-11-30 16:47:32 +09:00
2022-11-30 05:34:06 +09:00

demo-hexagonal

Hexagonal Architecture 구조로 만든 코프링 웹 애플리케이션

Kotlin + Spring Boot 2 + Spring MVC + Spring Data JPA

OpenJDK Kotlin Spring Boot Gradle MariaDB Swagger 3


Tech Stacks

  • JDK 17
  • Kotlin 1.6.21
  • Build Tools
    • Gradle
    • Kotlin DSL
  • Spring Boot 2
  • Spring Data JPA
  • MariaDB 10.8.3
  • OpenAPI Specification
    • Swagger v3
      • springdoc-openapi ui 1.6.13

프로젝트 구성

프로젝트는 멀티 모듈로 구성되어있습니다.

architecture-1
  • core
    • 헥사고날 아키텍처의 application core 영역에 해당
    • 프로젝트의 핵심적인 비즈니스 로직이 들어있습니다
    • domain, port를 포함하고 있으며, 모든 클래스는 public 접근제한자로 설정되어 있습니다.
  • infrastructure
    • 헥사고날 아키텍처의 adapter - out 영역에 해당
    • datasource에 관련된 모듈이 들어갑니다.
    • persistence adapter, JpaRepository, ORM Entity 가 포함되어있습니다.
  • server
    • 헥사고날 아키텍처의 adapter - in 영역에 해당
    • controller를 포함하고 있으며, 모든 클래스는 internal 접근제한자로 설정되어 있습니다.
  • util
    • core, server, infrastructure 모듈에서 공통적으로 사용할 유틸이 들어있습니다.

demo-app

demo 웹 애플리케이션의 실행 진입점은 server - demo-app 모듈의 DemoAppApplication 입니다.

DemoAppApplication

demo-app은 아래와 같이 :util:common-util, :core:demo-core, :infrastructure:datastore-mariadb 모듈을 포함합니다.

build.gradle.kts
Description
Hexagonal Architecture로 구조화한 멀티모듈 코프링 웹 애플리케이션
Readme 238 KiB
Languages
Kotlin 100%