org.springframework.beans.TypeMismatchException

 

異常信息主要部分:java

 

Unable to instantiate Action, manualsignAction,  defined for 'addmanualsignAction' in namespace '/'Error creating bean with name 'manualsignAction' defined in ServletContext resource [/WEB-INF/applicationContext-department.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.accp.oa.biz.impl.Manualsign_Biz_Impl] to required type [com.accp.oa.biz.Manualsign_Biz] for property 'mb'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.accp.oa.biz.impl.Manualsign_Biz_Impl] to required type [com.accp.oa.biz.Manualsign_Biz] for property 'mb': no matching editors or conversion strategy found spring

 

[com.accp.oa.biz.impl.Manualsign_Biz_Impl] 這個實體類沒法轉換成  [com.accp.oa.biz.Manualsign_Biz] ,找了幾個小時,仔細看配置文件都對了啊,最後終於找到錯了,原來別人把 biz實現類繼承了dao接口!改爲繼承biz接口就OK。app

相關文章
相關標籤/搜索