-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9db0d9b
commit 40e1ddf
Showing
36 changed files
with
585 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,7 @@ tasklist /V | |
- 서비스 관련 CLI | ||
|
||
#### sc delete \<서비스명\> | ||
- 서비스 삭제 | ||
- **관리자 콘솔로만 사용 가능** | ||
|
||
### tree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ last_modified_at: 2024-01-03T08:00:00-10:00:00 | |
--- | ||
|
||
# 연결문서 | ||
- [RNR](../../itbusiness/itbusiness-RNR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title : "BMT" | ||
excerpt : "BMT" | ||
toc : true | ||
toc_sticky : true | ||
toc_label : "BMT" | ||
categories: | ||
- ITBusiness | ||
tags: | ||
- [ITBusiness] | ||
last_modified_at: 2024-01-04T08:00:00-10:00:00 | ||
--- | ||
|
||
# 날짜 : 2024-01-04 18:39 | ||
|
||
# 태그 : #ITBusiness | ||
--- | ||
|
||
# 내용 | ||
|
||
## 정의 | ||
> BMT 란? | ||
> Benchmark Test | ||
> 품질 성능 평가 시험 | ||
> 실존하는 비교 대상을 두고 하드웨어나 소프트웨어의 성능을 비교 분석하여 평가하는것 | ||
--- | ||
|
||
# 연결문서 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
--- | ||
title : "@Autowired" | ||
excerpt : "@Autowired" | ||
toc : true | ||
toc_sticky : true | ||
toc_label : "@Autowired" | ||
categories: | ||
- Annotation | ||
tags: | ||
- [Spring, Annotation] | ||
last_modified_at: 2024-01-05T08:00:00-10:00:00 | ||
--- | ||
|
||
# 날짜 : 2024-01-05 18:14 | ||
|
||
# 태그 : #Spring #Annotation | ||
--- | ||
|
||
# 내용 | ||
|
||
## Artifact | ||
- spring-beans | ||
|
||
## 역할 | ||
- 필요한 의존 객체의 타입에 해당하는 bean을 찾아 주입 | ||
- 동일한 Bean이 2개 이상이면 오류를 발생 | ||
- 두 개 이상의 클래스로 하나의 인터페이스를 구현할 경우 [@Qualifier](../../annotation/annotation-@Qualifier) Annotation으로 특정 Bean을 가져오겠다는 명시 필요 | ||
|
||
## 적용 대상 | ||
- Constructor | ||
- Setter | ||
- Field | ||
|
||
## DI 방법 | ||
|
||
### Constructor Injection | ||
- 가장 권장되는 방식의 DI 방식 | ||
- 생성자에서 의존성을 주입받고자 하는 field를 나열하는 방법 | ||
- 매개변수가 bean으로 등록되어있지 않다면 생성자에서 에러 발생 | ||
|
||
```java | ||
@Service | ||
public class MyService { | ||
private MyDao myRepository; | ||
|
||
@Autowired | ||
public MyService(MyRepository myRepository) { | ||
this.myRepository = myRepository; | ||
} | ||
} | ||
``` | ||
|
||
### Setter Injection | ||
- setter 메소드에 @Autowired annotation을 선언 | ||
|
||
```java | ||
@Service | ||
public class MyService { | ||
private MyDao myRepository; | ||
|
||
@Autowired | ||
public setMyRepository(MyRepository myRepository) { | ||
this.myRepository = myRepository; | ||
} | ||
} | ||
``` | ||
|
||
### Field Injection | ||
- 단일 책임의 원칙 위반, 객체의 오염 가능성이 있다는 단점 | ||
- 사용하기 쉽다는 장점 | ||
- field에 @Autowired annotation을 선언 | ||
|
||
```java | ||
@Autowired | ||
private ConfigValueWebService configValueWebService; | ||
``` | ||
|
||
--- | ||
|
||
# 연결문서 | ||
- [@Qualifier](../../annotation/annotation-@Qualifier) |
Oops, something went wrong.