package com.di.ex01;

import org.springframework.context.support.GenericXmlApplicationContext;

public class TestMain {

	public static void main(String[] args) {
		GenericXmlApplicationContext gxac = new GenericXmlApplicationContext("com/di/ex01/bean.xml");
		
		MessageBean bean = (MessageBean) gxac.getBean("messageBean");
		bean.sayHello();
		bean.sayHello("사과", 2000);
		
		gxac.close();
	}

}