`
安之若素
  • 浏览: 144844 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

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。

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics