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.