Org.apache.shiro.web.servlet.ShiroHttpServletRequest cannot is cast to Org.springframwork.web.mult.

Source: Internet
Author: User

Uploading file errors when +spring MVC with the DWZ framework

Detailed errors such as the following:

In fact, it is a type conversion error, but it has been studied for a long time, how do not know what is wrong. Since the previous unloading of a file upload and this almost the same, that there is no problem.

Problem solving: In fact, there are two reasons for this error: one is the property of the form, the file upload is, the type of the form must be formdata type-----I certainly am not guilty of this mistake.

However, when debugging with breakpoints, it is found that the type received in the background is not formdata type. That's strange. Is this form and other things have any inexplicable connection?? All right

The big night also don't beat around the bush, sleepy zzzzzzzz.

。 Finally, the problem is that the callback function, the upload file must use and upload the file related callback function.

It's strange to say.

callback function should be the background operation is completed before leaving, do not know why has not uploaded the error. In short, the solution is good. Want to give tips to people who have met the same problem.

Org.apache.shiro.web.servlet.ShiroHttpServletRequest cannot is cast to Org.springframwork.web.mult.

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.