错误报告页面

版权声明:转载请注明来源,谢谢!!!! https://blog.csdn.net/jiaonizuoren/article/details/81237156

错误报告页面

 Unable to instantiate Action, com.founder.cis.action.zxb.ZxbMobileFolderAction, defined for 'ZxbMobileFolder' in namespace '/'Failed to convert property value of type [com.sun.proxy.$Proxy43 implementing com.founder.cis.dao.mobile.MobileSiteFolderDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.founder.cis.dao.zxb.ZxbMobileSiteFolderDao] for property 'mobileSiteFolderDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.sun.proxy.$Proxy43 implementing com.founder.cis.dao.mobile.MobileSiteFolderDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.founder.cis.dao.zxb.ZxbMobileSiteFolderDao] for property 'mobileSiteFolderDao': no matching editors or conversion strategy found - action - file:/F:/workspace/Zxb_app/WebContent/WEB-INF/classes/struts-ana.xml:28:106

我刚好也遇到这样的情况,发现是自己的配置文件里写错了,spring里的id属性值要对应struts里class属性值。

打开struts.xml配置文件,发现是在ana包中,而ZxbMobileFolderAction这个类在zxb目录下的,所以应该配置package的name属性为“zxb”,即可解决问题

猜你喜欢

转载自blog.csdn.net/jiaonizuoren/article/details/81237156