스프링 DI (Dependency Injection) DI 는 Spring에서 새롭게 지원하는 IoC의 한 형태로서 각 계층의 사이, 각 Class 사이에 필요로 하는 의존관계가 있다면 이를 컨테이너에 자동적으로 연결시켜주는 것으로 각 Class 사이의 의존관계를 Bean 설정정보를 바탕으로 컨테이너가 자동적으로연결해 주는 것을 의미합니다. DI는 Dependency Injection의 약자로서, '의존 주입' 이라는 단어로 번역된다.스프링은 기본적으로 DI를 기반으로 동작하기 때문에, 스프링을 잘 사용하려면 DI에 대한 이해가 필수적이다. ※ Dependency DI는 의존에 대한 설계 패턴이므로 소프트웨어를 개발할 때, 단 한개의 클래스에 모든 코드를 몰아 넣는 경우는 없다.아래 코드와 같이 File..
기본적인 프로젝트로 실행은 되지 않으며 틀만 구성합니다. 1. MyWindow.java package Window; import java.awt.*; import java.awt.event.*; class Windows extends Frame { public Windows(String title) { super(title); this.setSize(900, 600); setLayout(null); this.setBackground(Color.yellow); PopupMenu pm; MenuBar mb; Menu file, edit, windows; mb = new MenuBar(); file = new Menu("File"); edit = new Menu("Edit"); windows = new Men..
1. Student.java package ScoreMana; public class Student { String Name, Bun, Friend, Movie, Food, Music; int kor, eng, math, sci; double sum, avg; public Student(String name, String bun, int kor, int eng, int math, int sci, String food, String music, String friend, String movie) { this.Name = name; this.Bun = bun; this.kor = kor; this.eng = eng; this.math = math; this.sci = sci; this.Food = food;..