Spring, Dependency Injection 종류 생성자주입, 수정자주입, 필드주입
생성자 주입 annotation MsgProvider.java package constructor.annotation; import org.springframework.stereotype.Component; @Component("provider") public class MsgProvider { private String msg = "Hello World!(Constructor Injection annotation)"; public String getMsg() { return msg; } } MsgRender.java package constructor.annotation; import org.springframework.beans.factory.annotation.Autowired; import org..
Java/Spring
2021. 10. 27. 14:16
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- IdClass
- highlightthickness
- disabledforeground
- Module
- JPA
- onetomany
- activeforeground
- tkinter
- borderwidth
- indicatoron
- tkinter command & bind [명령어묶기와 사건묶기] Python
- Python
- Excel
- Composite Key
- 리눅스
- ManyToOne
- activebackground
- Private
- 파이썬
- Java
- FetchType
- apache
- command
- 폼
- highlightbackground
- 상수
- fetch join
- checkbutton
- vba
- Linux
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함