慕沐7199068
2018-08-12 20:06
不知道问题出在哪
<bean id="injectionDAO"class="com.imooc.ioc.injection.dao.InjectionServiceImpl"></bean>
</beans>你这句包导错了
如果你按老师的写的 应该改成com.imooc.ioc.injection.dao.InjectionDaoImpl
额 抱歉看错章节了
classpath:后面根据你的.properties文件的位置和名字写
然后ImportResource("classpath:spring.xml") 就OK了
在你的spring.xml文档中加入<context:property-placeholder location="classpath:config.properties"/>
Spring入门篇
268791 学习 · 963 问题
相似问题
回答 1
回答 1
回答 4
回答 1
回答 1