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

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

求大佬解答這是什么意思

https://img1.sycdn.imooc.com//5b7022b80001df6c06360207.jpg

不知道問題出在哪

正在回答

5 回答

<bean id="injectionDAO"class="com.imooc.ioc.injection.dao.InjectionServiceImpl"></bean>

</beans>你這句包導錯了

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

慕沐7199068 提問者

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

如果你按老師的寫的 ? 應(yīng)該改成com.imooc.ioc.injection.dao.InjectionDaoImpl

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

慕沐7199068 提問者

還是一樣的報錯。。。
2018-08-12 回復(fù) 有任何疑惑可以回復(fù)我~

額 抱歉看錯章節(jié)了

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

classpath:后面根據(jù)你的.properties文件的位置和名字寫

然后ImportResource("classpath:spring.xml") 就OK了

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

在你的spring.xml文檔中加入<context:property-placeholder location="classpath:config.properties"/>

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

慕沐7199068 提問者

按你說的我加了,代碼如下,還是報錯: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans"
2018-08-12 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕沐7199068 提問者

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
2018-08-12 回復(fù) 有任何疑惑可以回復(fù)我~
#3

慕沐7199068 提問者

<bean id="injectionService" class="com.imooc.ioc.injection.service.InjectionServiceImpl"> <property name="injectionDAO"ref="injectionDAO"></property> </bean> <context:property-placeholder location="classpath:config.properties"/>
2018-08-12 回復(fù) 有任何疑惑可以回復(fù)我~
#4

慕沐7199068 提問者

<bean id="injectionDAO"class="com.imooc.ioc.injection.dao.InjectionServiceImpl"></bean> </beans>
2018-08-12 回復(fù) 有任何疑惑可以回復(fù)我~
查看1條回復(fù)

舉報

0/150
提交
取消
Spring入門篇
  • 參與學習       268800    人
  • 解答問題       1026    個

為您帶來IOC和AOP的基本概念及用法,為后續(xù)高級課程學習打下基礎(chǔ)

進入課程

求大佬解答這是什么意思

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

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

幫助反饋 APP下載

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

公眾號

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