本次更新内容: 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> 例行说明 |