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
- 상수
- Linux
- borderwidth
- ManyToOne
- checkbutton
- FetchType
- tkinter
- Excel
- highlightbackground
- 폼
- command
- onetomany
- tkinter command & bind [명령어묶기와 사건묶기] Python
- activeforeground
- 파이썬
- Module
- fetch join
- disabledforeground
- highlightthickness
- Private
- JPA
- Composite Key
- Python
- IdClass
- activebackground
- 리눅스
- Java
- indicatoron
- apache
- vba
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함