0
在How to make Apache Tomcat accept DELETE method之前詢問此問題,但它提供的解決方案對我無效。我已經添加Tomcat,啓用DELETE方法
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
到web.xml和我<servlet>
設置是這樣的:
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
不過,我仍然有DELETE
訪問時,得到了405。有什麼建議?順便說一句,我已經重新啓動tomcat。
我的問題。我正在使用GET ... – laike9m