Recently started contacting Springmvc, a page of a previous project was copied from the project, and it was found that the form page data could not be bound to the model when the value passed in was all null, and later found that the form form used in the page used
Enctype= "Multipart/form-data", cancel off enctype= "Multipart/form-data" all normal.
Later projects need this business implementation upload attachments, which contradicts before, find the corresponding method, restore the form enctype= "Multipart/form-data" and set in the configuration file
<bean id= "Multipartresolver" class= "Org.springframework.web.multipart.commons.CommonsMultipartResolver" >
<property name= "defaultencoding" value= "Utf-8" ></property>
<property name= "Maxuploadsize" Value= "10485760000" ></property>
<property name= "maxinmemorysize" value= "40960" ></property >
</bean>