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

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

@autowired注解失敗

http://img1.sycdn.imooc.com//5960d1270001ac6707840308.jpg

為什么提示注解失敗

代碼如下:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testComponent': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.testBean.InjectionDAO com.testBean.TestComponent.injectionDAO; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.testBean.InjectionDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

正在回答

1 回答

已解決。。。

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

慕仔4276564

什么原因?
2017-07-19 回復(fù) 有任何疑惑可以回復(fù)我~
#2

nize1989 回復(fù) 慕仔4276564

@Autowired 下面調(diào)用的類,調(diào)用到了之前寫的同名包了,不是xml配置里面的路徑里面的包
2017-08-31 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

@autowired注解失敗

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

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

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