org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.la
2013-12-05 22:38
1071 查看
使用表单上传文件的时候报错 org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type
'java.lang.String' to required type 'org.springframework.web.multipart.commons.CommonsMultipartFile',是因为没有设置在multipart/form-data 模式 springMVC
无法进行有效的转换
完整的设置为:<form method="post" enctype='multipart/form-data' action="<%=path%>/mng/news/doChangeNews.html"> 即可解决
'java.lang.String' to required type 'org.springframework.web.multipart.commons.CommonsMultipartFile',是因为没有设置在multipart/form-data 模式 springMVC
无法进行有效的转换
完整的设置为:<form method="post" enctype='multipart/form-data' action="<%=path%>/mng/news/doChangeNews.html"> 即可解决
相关文章推荐
- Spring 整合 Flex (BlazeDS)无法从as对象 到 Java对象转换的异常:org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.Date' to required type 'java.sql.Timestamp' for property 'wfsj'; nested exception is java.lang.Ill
- pagehelper 插件应用报错:ConversionNotSupportedException: Failed to convert property value of type ‘java.la
- Failed to convert value of type 'java.lang.String' to required type 'org.springframework.web.multipa
- java异常:org.springframework.beans.ConversionNotSupportedException
- 关于Failed to convert property value of type [org.quartz.impl.StdScheduler] to required type [org.springframework.scheduling.quartz.SchedulerFactoryBean
- spring Failed to convert property value of type 'java.lang.String' to required type 'int' for proper
- org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [41] did not match expected type [java.lang.Integer (n/a)];
- nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframewo
- 解决 java.lang.ClassNotFoundException: org.springframework.beans.factory.config.EmbeddedValueResolver
- org.springframework.beans.ConversionNotSupportedException
- spring Failed to convert property value of type 'java.lang.String' to required type 'int' for proper
- SSM 运行时发生异常:org.springframework.beans.ConversionNotSupportedException:
- org.springframework.beans.ConversionNotSupportedException异常解决方法
- Spring 整合 Flex (BlazeDS)无法从as对象 到 Java对象转换的异常:org.springframework.beans.ConversionNotSupportedExcept
- nested exception is org.springframework.beans.ConversionNotSupportedException的解决方法
- org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.io.Serializable]:
- Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException:
- Spring+mybatis+SpringMVC整合发生异常:org.springframework.beans.ConversionNotSupportedException
- java-org.springframework.core.convert.ConversionFailedException- 前端传string解析date异常
- org.springframework.beans.ConversionNotSupportedException: