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

相关文章
相关标签/搜索