package com.anno.ex01;
import org.springframework.context.support.GenericXmlApplicationContext;
public class CarMain {
public static void main(String[] args) {
GenericXmlApplicationContext gxac = new GenericXmlApplicationContext("com/anno/ex01/applicationContext.xml");
Tire tireA = gxac.getBean("koreaTire", Tire.class);
System.out.println(tireA.getBrand());
System.out.println();
Car carA = gxac.getBean("carA", Car.class);
carA.checkTire();
gxac.close();
}
}