package com.anno.ex04;
import org.springframework.context.support.GenericXmlApplicationContext;
public class MessageMain {
public static void main(String[] args) {
GenericXmlApplicationContext gxac = new GenericXmlApplicationContext("com/anno/ex04/applicationContext.xml");
MyMessage msg = gxac.getBean("myMessage", MyMessage.class);
System.out.println(msg.getMessage());
gxac.close();
}
}