nested exception is org.springframework.beans.ConversionNotSupportedException的解决方法

来源:互联网 发布:unity保卫萝卜源码 编辑:程序博客网 时间:2024/05/19 00:36

    问题:

    Unable to instantiate Action, ZhuCeInfoAction, defined for 'ZhuCeAction' in namespace '/'Error creating bean with name 'ZhuCeInfoAction' 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 'com.serviceImpl.UserInfoServiceImpl' to required type 'com.service.UserInfoService' for property 'userInfoService';    nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.serviceImpl.UserInfoServiceImpl] to required type [com.service.UserInfoService] for property 'userInfoService': no matching editors or conversion strategy found

    解决方案:1、检查application.xml文件中的配置是否有误。

              2、如确认application文件中的配置无误,你应该检查XX的实现类是否实现自XX(如:检查UserInfoServiceImpl是否实现自UserInfoService)。

0 1
原创粉丝点击