亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Description: Field resource in com.imooc.controller.HelloContoller required a bean of type 'com.imocc.pojo.Resource' that could not be found. Action: Consider defining a bean of type 'com.imocc.pojo.Resource' in your configuration.

Description:


Field resource in com.imooc.controller.HelloContoller required a bean of type 'com.imocc.pojo.Resource' that could not be found.



Action:


Consider defining a bean of type 'com.imocc.pojo.Resource' in your configuration.


正在回答

3 回答

在你的主程序前面加上:
@ComponentScan(basePackages= {"com.*"})
意思是掃描com.*包下所有類 若解決,請采納謝謝。

2 回復 有任何疑惑可以回復我~
#1

weixin_慕九州3547091

解決了牛皮!
2019-10-28 回復 有任何疑惑可以回復我~

啟動類放到最外邊?https://img1.sycdn.imooc.com//5d4011740001129403040175.jpg

1 回復 有任何疑惑可以回復我~

完全是視頻里的代碼結果跑不起來,服了


1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

Description: Field resource in com.imooc.controller.HelloContoller required a bean of type 'com.imocc.pojo.Resource' that could not be found. Action: Consider defining a bean of type 'com.imocc.pojo.Resource' in your configuration.

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號