Learn SpringMVC file upload problems encountered, 403: returned a response status of 403 Forbidden, 409 Not Found folder

Question one:

409: Folder is not created, you can not find the specified folder, you can create.

Question two:

403:returned a response status of 403 Forbidden

My reason for this error is because I will upload pictures to deploy a single server. But the picture can not be written. You need to configure tomcat can write in this picture storage project is located.
Specifically web.xml conf file in the Tomcat directory folder added

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

Transfer from https://blog.csdn.net/u011342403/article/details/56280564

Guess you like

Origin www.cnblogs.com/weiqang/p/11265963.html
403