class: 객체를 생성하기 위해 사용할 클래스를 지정한다. id: Bean 객체를 가져오기 위해 사용하는 이름을 저장한다. lazy-init: 싱글톤인 경우 xml을 로딩할 때 객체 생성 여부를 설정한다. true: xml로딩 시 객체를 생성하지 않고 객체를 가져올 때 생성한다. scope: 객체의 범위를 설정한다. slingeton: 객체를 하나만 생성해서 사용 prototype: 객체를 가져올 때 마다 객체를 생성한다. package sanghoon.main; import org.springframework.context.support.ClassPathXmlApplicationContext; import sanghoon.beans.TestBean; public class MainClass { pub..