36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
---
|
|
id: wiki-20260508--di--redir
|
|
title: 의존성 주입 (DI)
|
|
category: 10_Wiki/Topics
|
|
status: duplicate
|
|
canonical_id: wiki-2026-0508-solid
|
|
duplicate_of: "[[SOLID 원칙]]"
|
|
aliases: [DI, Dependency Injection, 의존성 주입]
|
|
source_trust_level: A
|
|
confidence_score: 0.9
|
|
verification_status: redirected
|
|
tags: [duplicate, oop, design-pattern, di]
|
|
last_reinforced: 2026-05-10
|
|
github_commit: pending
|
|
---
|
|
|
|
# 의존성 주입 (DI)
|
|
|
|
> **이 문서는 [[SOLID 원칙]] 의 중복본입니다.** Canonical 문서로 redirect (DIP — Dependency Inversion Principle 의 매 구현 mechanism).
|
|
|
|
## 핵심 요약 (specialization aspects)
|
|
- 매 DI = 매 component 의 매 dependency 를 매 외부에서 주입 — 매 SOLID 의 매 D (Dependency Inversion) 의 매 실현.
|
|
- 매 변형: constructor injection (선호) · setter · interface · property.
|
|
- 매 modern frameworks: NestJS (TypeScript) · Spring (Java) · ASP.NET Core · tsyringe · InversifyJS.
|
|
- 매 testing 의 매 핵심 enabler — 매 mock/stub 의 매 swap 의 매 trivial.
|
|
|
|
## 🔗 Graph
|
|
- 부모: [[SOLID 원칙]] (canonical — DIP)
|
|
- Adjacent: [[ASPNET Core]] · [[관심사의 분리 (Separation of Concerns SoC)]] · [[객체 지향 프로그래밍 (OOP)]]
|
|
|
|
## 🕓 변경 이력
|
|
| 날짜 | 변경 |
|
|
|---|---|
|
|
| 2026-05-08 | Phase 1 |
|
|
| 2026-05-10 | 중복 처리 — canonical 문서로 redirect |
|