출처: https://leejisoo860911.tistory.com/2
Spring DI의 모든 방법 @Autowired / 생성자 주입
Spring에서 등록된 Bean을 사용하기 위해서 DI(Dependency Injection)를 처리하는 방법은 크게 3가지가 있다. Field Injection , Setter Injection , Contructor Inject 이다. Spring 3.x버젼까지만 해도 Setter I..
leejisoo860911.tistory.com
'Development > Java SpringBoot' 카테고리의 다른 글
[Java SpringBoot] Spring 3.1 @RequestBody 유의점, Error: java.util.LinkedHashMap cannot be cast to object (0) | 2021.08.27 |
---|---|
[Java SpringBoot] JPA 사용법 (JpaRepository) (0) | 2021.08.09 |
[Java SpringBoot] @RequestParam과 @PathVariable? (0) | 2021.08.06 |
[Java SpringBoot] Bean과 의존성 주입(Dependency Injection) (0) | 2021.08.05 |
[Java SpringBoot] SpringBoot H2 연결방법(H2 웹콘솔) (0) | 2021.08.05 |