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://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