yaboong.github.io/spring/2019/08/29/why-field-injection-is-bad/
스프링 - 생성자 주입을 사용해야 하는 이유, 필드인젝션이 좋지 않은 이유
개요 Dependency Injection (의존관계 주입) 이란 Setter Based Injection (수정자를 통한 주입) Constructor based Injection (생성자를 통한 주입) 스프링에서 사용할 수 있는 DI 방법 세가지 생성자 주입을 이용한 순
yaboong.github.io
'Spring > 스프링부트' 카테고리의 다른 글
Spring boot Security 구현 후기 (0) | 2021.07.14 |
---|---|
org.thymeleaf.exceptions.TemplateInputException 에러 해결방법 (0) | 2021.07.14 |
Spring Boot : Data JPA - @Query 사용 (0) | 2021.07.13 |
@Service와 @Repository의 차이 (0) | 2021.06.03 |
스프링부트 액추에이터(Spring boot Actuator) (0) | 2021.05.29 |