测试List时候出现错误
@Component
public class BeanInvoke {
@Autowired
private List <BeanInterface> list;
public void say(){
if(null!=list && list.size()!=0){
for(BeanInterface bean:list){
System.out.println(bean.getClass().getName());
}
}
else{
System.out.println("list is null!");
}
}
}