第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

類中GirlProperties類中增加了@Component,但還是報(bào)錯(cuò)?

Error creating bean with name 'helloController':

?Unsatisfied dependency expressed through field 'girlProperties':?

No qualifying bean of type [com.imooc.GirlProperties] found for dependency [com.imooc.GirlProperties]:?

expected at least 1 bean which qualifies as autowire candidate for this dependency.?

Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)};

?nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:

?No qualifying bean of type [com.imooc.GirlProperties] found for dependency [com.imooc.GirlProperties]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}


正在回答

4 回答

HelloController類中最前面的注解錯(cuò)了,應(yīng)該死@RestController

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

一滴水55 提問者

非常感謝!
2017-11-03 回復(fù) 有任何疑惑可以回復(fù)我~

具體的代碼http://img1.sycdn.imooc.com//59fbbd39000115fa08930467.jpghttp://img1.sycdn.imooc.com//59fbbd6100015afc10120709.jpg

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

@Component注解已經(jīng)寫到了類上


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

沒有要找到要注入的Bean

創(chuàng)建helloContoller 的時(shí)候注入 GrilProperties 時(shí)失敗了。

檢查@Component注解是否寫到了類上

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

舉報(bào)

0/150
提交
取消
2小時(shí)學(xué)會(huì)Spring Boot
  • 參與學(xué)習(xí)       151527    人
  • 解答問題       1132    個(gè)

Spring Boot入門視頻教程,你將學(xué)會(huì)使用Spring Boot快速構(gòu)建應(yīng)用程序

進(jìn)入課程

類中GirlProperties類中增加了@Component,但還是報(bào)錯(cuò)?

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

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

幫助反饋 APP下載

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

公眾號(hào)

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