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