近1000 star,Forest 1.5.0 正式版发布

简介

Forest是一个高层的、极简的轻量级HTTP调用API框架。
相比于直接使用Httpclient您不再用写一大堆重复的代码了,而是像调用本地方法一样去发送HTTP请求。

不需要调用HTTP底层接口,而是像 Dubbo 那样的 RPC 框架一样,只需要定义接口、调用接口即可。10分钟即可完成请求的定义、发送、接收响应、数据解析、错误处理、日志打印等过程。

官网地址:http://forest.dtflyx.com

仓库地址:https://gitee.com/dromara/forest

gitee

经过8个多月的坚持和努力,Forest已快突破1000 star

stars

v1.5.0 正式版更新内容

新增特性:

  • feat: 支持application/octet-stream等二进制请求方式
  • feat: 变量未定义时,报错给予更友好的提示
  • feat: 添加@Var注解,作为@DataVariable注解的简化快捷版本

修复问题:

  • fix: ForestResponse作为返回值使用@DownloadFile注解进行下载后getResult()为空

代码变更:

  • add: ForestConfiguration#isVariableDefined方法
  • add: @Var注解
  • add: ResourceRequestBody类
  • add: ResourceRequestBodyBuilder类
  • add: MultipartRequestBody类
  • add: MultipartRequestBodyBuilder类
  • add: SupportFormUrlEncoded类
  • refactor: 将DataVariableLifeCycle改名为VariableLifeCycle
  • refactor: Body的解析方式改为构建器模式
  • refactor: ForestVariableUndefined.java 改名为 ForestVariableUndefinedException

Maven依赖变更:

  • update: 更新spring-core和spring-webmvc版本
  • update: 更新JUnit版本

如果您对Forest感兴趣,请在Gitee上给个Star _

https://gitee.com/dromara/forest

posted @ 2021-03-31 11:49  公子骏  阅读(172)  评论(0编辑  收藏  举报