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