t-io 3.2.2 发布,主要是 tio-http 模块的升级

栏目: 后端 · 前端 · 发布时间: 6年前

内容简介:1、[tio-utils]:优化 tio 内置的 Cache 框架2、Tio.java 部分方法调整3、[tio-http]:HttpRequest 增加很多便捷的方法用于获取参数

本次更新内容:

1、[tio-utils]:优化 tio 内置的 Cache 框架

2、Tio.java 部分方法调整

3、[tio-http]:HttpRequest 增加很多便捷的方法用于获取参数

getObject(String name)

getString(String name)

getUploadFile(String name)

getInt(String name)

getShort(String name)

getLong(String name)

getDouble(String name)

getFloat(String name)

4、[tio-http]:增加和优化 forward()

org.tio.http.common.HttpRequest.forward(String)

org.tio.http.server.util.Resps.forward(HttpRequest, String)

5、[tio-http]:优化 404, 500 处理,由原来的 redirect 改为 forward,用户体验更棒一些

6、[tio-http]:注释中内置 forward 字段,用起来跟 nginx 的 rewrite 差不多

@RequestPath(value = "/{adid}", forward = "/ad/methodB") 

public HttpResponse methodA(Integer adid, HttpRequest request) throws Exception {...}

外部访问"/ad/12345",对内的处理逻辑就是"/ad/methodB?adid=12345"

7、[tio-websocket]:优化一个小的编码问题,减少新对象的创建

最新pom

<dependency>
    <groupId>org.t-io</groupId>
    <artifactId>tio-core</artifactId>
    <version>3.2.2.v20181122-RELEASE</version>
</dependency>

例行说明

  • t-io官网 开放注册功能了,目前有尚未完善的聊天功能和博客功能,欢迎来作客留痕!


以上所述就是小编给大家介绍的《t-io 3.2.2 发布,主要是 tio-http 模块的升级》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

JavaScript and Ajax for the Web, Sixth Edition

JavaScript and Ajax for the Web, Sixth Edition

Tom Negrino、Dori Smith / Peachpit Press / August 28, 2006 / $24.99

Book Description Need to learn JavaScript fast? This best-selling reference’s visual format and step-by-step, task-based instructions will have you up and running with JavaScript in no time. In thi......一起来看看 《JavaScript and Ajax for the Web, Sixth Edition》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

MD5 加密
MD5 加密

MD5 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具