Notice
Recent Posts
Recent Comments
Link
목록scope=prototype (1)
개발 무지렁이

제어의 역행 (Inversion of Control) 흐름이 뒤바뀌다. 내부에서 객체를 생성(new)하는 것이 아니라, 외부의 Spring Container(IoC 컨테이너)가 객체를 생성해서 안으로 주입해준다. (DI) DI 유형 (의존성 주입) 📌. 객체의 의존관계를 파악해서 객체의 LifeCycle을 관리 - Construction Injection ('생성자를 통한 주입') - Setter Injection ('Setter를 통한 주입') - value 키워드 - ref 키워드 ⚠️ 생성 및 주입은 Spring Container가 주관. => 이를 위해 configuration meta 정보를 입력하자 [beans.xml] [MainApp.java] public cla..
Backend/스프링
2023. 4. 30. 15:47