returned a response status of 403 Forbidden
程序员文章站
2022-04-14 14:25:37
...
- 使用Springmvc进行跨服务器上传图片时报了如下错误
-
意思就是说没有写入的权限, - 打开该tomcat的web.xml文件
- 找到下面代码加入:
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
-
最后再重启tomcat就ok啦
推荐阅读
-
(发送post请求报错)There was an unexpected error (type=Forbidden, status=403). Forbidden
-
Java代码中访问链接提示java.io.IOException: Server returned HTTP response code: 403 for UR
-
Java代码中访问链接提示java.io.IOException: Server returned HTTP response code: 403 for UR
-
Request processing failed; returned a response status of 403 Forbidden
-
returned a response status of 403 Forbidden
-
【错误处理】上传文件出错returned a response status of 405 Method Not Allowed,400
-
500错误:returned a response status of 403 Forbidden
-
returned a response status of 405 Method Not Allowed