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

栏目: 软件资讯 · 发布时间: 7年前

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

本次更新内容:

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官网开放注册功能了,目前有尚未完善的聊天功能和博客功能,欢迎来作客留痕!


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

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

Ant Colony Optimization

Ant Colony Optimization

Marco Dorigo、Thomas Stützle / A Bradford Book / 2004-6-4 / USD 45.00

The complex social behaviors of ants have been much studied by science, and computer scientists are now finding that these behavior patterns can provide models for solving difficult combinatorial opti......一起来看看 《Ant Colony Optimization》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

html转js在线工具
html转js在线工具

html转js在线工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具