struts+spring+hibernate的错误!求助高手!

来源:百度知道 编辑:UC知道 时间:2024/06/10 02:36:09
启动tomcat时出现在以下异常:
严重: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/studentLoginAction' defined in ServletContext resource [/WEB-INF/applicationContext_action.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy1] to required type [com.exam.command.StudentCommand] for property 'command'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy1] to required type [com.exam.command.StudentCommand] for property 'command': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
o

检查你的/WEB-INF/applicationContext_action.xml文件,spring在实例'/studentLoginAction' bean时出错,
另外‘[com.exam.command.StudentCommand] for property 'command'; 检查StudentCommand类的spring配制的command属性有什么问题

最好把配制文件贴出来