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