스프링 컨테이너 생명 주기
GenericXmlApplication ctx = newGenericXmlApplicationContect(); ----------> 스프링컨테이너생성 ctx.load("classpath.applicationCTX.xml"); ----> 스프링 컨테이너 설정 load를 해서 xml파일을 가져오는경우 반드시 refresh필요 ctx.refresh(); Student student =ctx.getbean("student", Student.class); ----------> 스프링컨테이너사용System.out.println("이름" + student.getName); ctx.close(); 종료 스프링 생명 주기 package com.javalec.ex; import org.springframework.bea..