Skip to content
summerr0-0 edited this page Dec 30, 2024 · 1 revision
my-project/
├── web/                    # Primary(Driving) Adapter
│   └── api/               
│       ├── ProductController
│       └── dto/
│
├── core/                   # Application Core
│   ├── domain/            # 도메인 모델, 비즈니스 규칙
│   │   └── Product.java   
│   └── service/           # UseCase 구현체, 비즈니스 로직
│       └── ProductService.java
│
├── ports/                  # Ports(인터페이스) 정의
│   ├── inbound/           # Primary(Driving) Port
│   │   └── ProductUseCase.java
│   └── outbound/          # Secondary(Driven) Port
│       └── ProductRepository.java
│
├── persistence/           # Secondary(Driven) Adapter
│   ├── entity/           # JPA Entity
│   └── ProductRepositoryImpl.java
│
└── event/                # Secondary(Driven) Adapter
    └── external/         # 외부 시스템 연동
        └── EventPublisher.java
Clone this wiki locally