DI란 무엇인가?
스프링 DI라는 말이 처음 배울 때 많이 나옵니다. DI란 무엇일까요? DI는 dependency Injection의 약자로 의존관계 주입이라는 뜻을 가지고 있습니다. 의존관계를 주입한다는 말이 무엇일까요? 다음 코드를 보겠습니다. @Service @Transactional @RequiredArgsConstructor public class PostService { private final PostRepository postRepository; private final UserService userService; public PostDto write(PostCreateDto createDto, Email email) { checkNotNull(email, "email must be provided.");..