package com.anno.ex02;
import org.springframework.context.support.GenericXmlApplicationContext;
public class FoodMain2 {
public static void main(String[] args) {
GenericXmlApplicationContext gxac = new GenericXmlApplicationContext("com/anno/ex02/applicationContext.xml");
MyFood user = gxac.getBean("myFood", MyFood.class);
System.out.println(user);
gxac.close();
}
}