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

    问题:

    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)。

你可能感兴趣的:(Java)