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


說明:無論是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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM