package spring;
import org.junit.Before;
import org.junit.Test;
import spring.car.Audi;
import spring.car.Buick;
import spring.humen.LiSi;
import spring.humen.ZhangSan;
public class CarTst {
private IoCContainer ioccontainer=new IoCContainer();
@Before
public void Before(){
ioccontainer.setBean(Audi.class,beanId:"audi");
}
@Test
public void test(){
}
}
不用加beanId: , 只要传个参数进去就行了
视频里的beanId: 是IDEA的提示