the current request is not a miltipart request
1.检查form 的属性中是否加入了 enctype = "multipart/data":
<span style="font-size:24px;"> <form role="form" method = "post" action = "user/register" enctype ="multipart/form-data"></span>
2.检查spring.xml中是否加入了id为multipartResolver的bean ,这是用来解析文件的解析器:
<span style="font-size:24px;"> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/></span>