https://www.youtube.com/playlist?list=PLq8wAnVUcTFUHYMzoV2RoFoY2HDTKru3T 스프링 강의를 듣고 정리한 내용입니다 스프링 DI 지시서 작성하기 객체를 결합하는 방식은 크게 2가지 방식이 있다 생성자를 통해서 주입받는다 setter를 통해서 주입받는다 setter를 이용하는 예시 Program 클래스 수정 public class Program { public static void main(String[] args) { //Entity 클래스 Exam exam = new NewlecExam(); //출력 클래스 //ExamConsole console = new InlineExamConsole(exam); //생성자로 주입 ExamConsole consol..