[Solved] Spring MVC cross server upload error: returned a response status of 405 method not allowed

The error of uploading picture newspaper 405 across servers is because Tomcat is read-only by default. We turn off read-only and allow adding files instead.

Solution: Find the web.xml file in the tomcat installation directory, open it and add the following code in the servlet:

<!– Allow Tomcat server to add files — >

< init-param>
< param-name> readonly
< param-value> false

Similar Posts: