jersey 上传图片报错returned a response status of 403 Forbidden 和returned a response status of 409 Conflict

returned a response status of 403 Forbidden

tomcat服务器默认是不可写操作,只允许读,所以在Tomcat  web.xml文件中的servlet标签内加入(注意o字母为小写,大概在配置文件的98行左右。

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


returned a response status of 409 Conflict

路径错误,即当前访问的路径下没有相关文件。

猜你喜欢

转载自blog.csdn.net/qq_21508727/article/details/80437305