V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
DtFlys

近 1000 star, Forest 1.5.0 正式版发布!

  •  
  •   DtFlys · Mar 31, 2021 · 2104 views
    This topic created in 1855 days ago, the information mentioned may be changed or developed.

    简介

    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<File>作为返回值使用 @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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1171 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 157ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.