1. 程式人生 > >Java中使用HttpRequest調用RESTfull的DELETE方法接口提示:How to fix HTTP method DELETE doesn't support output

Java中使用HttpRequest調用RESTfull的DELETE方法接口提示:How to fix HTTP method DELETE doesn't support output

del spring -m blog view bugs gpo pri not

說明:無論是Spring框架還是Spring Boot的Feign形式的客戶端,以下的解決方法都適用。

解決方法:直接升級JDK 1.8,這個問題是1.7的BUG。

參考:

https://salesforce.stackexchange.com/questions/34624/http-method-delete-doesnt-support-output

https://salesforce.stackexchange.com/questions/66097/how-to-fix-http-method-delete-doesnt-support-output

https://bugs.java.com/view_bug.do?bug_id=7157360

https://stackoverflow.com/questions/12670169/not-able-to-invoke-an-delete-web-service-in-rest-jersey

Java中使用HttpRequest調用RESTfull的DELETE方法接口提示:How to fix HTTP method DELETE doesn't support output