感覺自己找的錯毫無理由,就是錯了,而且不知道原因
<bean id="commonsMultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="defaultEncoding" value="utf-8"></property> </bean>
springmvc的文件上傳,其他均正確,查看網上說什么entype錯了,但並沒有錯,提交也是post,但是就是不行。
又是原因不明的錯誤,但是找到了,很是郁悶(這里的id要么不寫,要么必須是multipartResolver),不然就會出現錯誤