Very bull fork of the landlord, his own problem is actually the answer--with SPRINGMVC upload file times the current request was not a multipart request exception

Source: Internet
Author: User

Http://bbs.csdn.net/topics/380167574?page=1

The landlord of the very Ox fork, his question is actually the answer


The reason is that there is a upload file under the directory causing the





I used spring3.1.0 to do an example of uploading a file, but found a strange problem, that is, when you specify requestmapping alone for upload, there will be a 404 error (if the project name is springtest, this URL is springtest/ upload), after debugging, it is found that when only upload is in the URL, its method is parsed to get, and I specify post in the form form. It's no problem to change to another name.
The following code:
The Web. XML code reads as follows:
xml/html code?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <? XML version = "1.0" encoding = "UTF-8"?> < Web-app id = "webapp_id" Version = "3.0" xmlns = "http://java.sun.c Om/xml/ns/javaee "

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.