| 의존성 주입(DI, Dependency Injection)의 세가지 방법 Spring은 @Autowired애노테이션을 이용한 다양한 의존성 주입 방법을 제공한다. @Autowired 애노테이션은 Spring에게 의존성을 주입하라는 지시자 역할로 쓰이는데 생성자, 필드, Setter 에 붙일 수 있다. 1. 생성자 주입 @Controller public class OwnerController { private final OwnerRepository owners; @Autowired //