org.springframework.beans.TypeMismatchException

 

异常信息主要部分:

 

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 

 

[com.accp.oa.biz.impl.Manualsign_Biz_Impl] 这个实体类无法转换成  [com.accp.oa.biz.Manualsign_Biz] ,找了几个小时,仔细看配置文件都对了啊,最后终于找到错了,原来别人把 biz实现类继承了dao接口!改成继承biz接口就OK。

 

 

 

 

 

你可能感兴趣的:(org.springframework.beans.TypeMismatchException)