使用表单上传文件的时候报错 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"> 即可解决