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

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

org.springframework.beans.factory.BeanCreationException

ERROR [localhost-startStop-1] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'cn.muke.ssh.service.ProductService' to required type 'cn.muke.ssh.dao.ProductDao' for property 'productDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [cn.muke.ssh.service.ProductService] to required type [cn.muke.ssh.dao.ProductDao] for property 'productDao': no matching editors or conversion strategy found

?求大神回答這什么問題 萬分感謝!

正在回答

1 回答

這個應(yīng)該是bean的id名字的問題,注意字母大小寫

<!--配置action層 ?-->

<bean id="productaction" class="com.action.ProductAction" scope="prototype">

<property name="productservice" ref="productservice"></property>

</bean>

<!--配置service層 ?-->

<bean id="productservice" class="com.service.ProductService">

<property name="productdao" ref="productdao"></property>

</bean>

<!--配置dao層 ?-->

<bean id="productdao" class="com.dao.ProductDao">

</bean>


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

慕粉2314364488 提問者

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

舉報

0/150
提交
取消
基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇
  • 參與學習       49826    人
  • 解答問題       365    個

本視頻教程主要介紹環(huán)境搭建和SSH框架整合,逐層深入理解學習

進入課程

org.springframework.beans.factory.BeanCreationException

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

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

幫助反饋 APP下載

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

公眾號

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