最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

測(cè)試List時(shí)候出現(xiàn)錯(cuò)誤

@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!");

}

}


}

http://img1.sycdn.imooc.com//57ac3d440001377112850491.jpg

正在回答

1 回答

你好,可以看看接口BeanInterface是否有具體的實(shí)現(xiàn)類,并且檢查下該類是否被spring掃描或者通過(guò)配置的方式注入到spring的容器中

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Heather1 提問(wèn)者

非常感謝!
2016-08-12 回復(fù) 有任何疑惑可以回復(fù)我~
#2

Heather1 提問(wèn)者

sorry,我忘了實(shí)現(xiàn)接口。。。。。調(diào)了好久。謝謝
2016-08-12 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

測(cè)試List時(shí)候出現(xiàn)錯(cuò)誤

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)