• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
返回主页

Jim

easonjim

Code, code and more code.

  • 管理

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

posted @ 2017-12-20 18:30  EasonJim  阅读(1638)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3