Fast
欢迎加入运维网交流群:263444886 http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://my.oschina.net/img/hot3.pngFast-FrameWork v0.1.1 发布了。Fast-FrameWork是轻量级 Java Web 框架。主要更新如下:
Bug 修复:
1、修复入参多参数无序问题
2、修复 POM 项目格式问题
3、修复返回值 JSON 内容格式未处理问题
增加 RESTful 支持:
1、支持响应格式 Content-Type: application/json; charset=UTF-8
2、支持 POST Content-Type: application/json 传输
3、基于 JDK 8 time包的时间工具类
增加 fast-framework sample:
1、新增 JSON 响应 demo 案例
2、新增 POST 请求 User Bean 案例
1. GET 方式
在浏览器中打开 - application/json; charset=UTF-8 :
GET http://localhost:8080/json?name=BYSocket 会得到如下结果:
http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://github.com/JeffLi1993/fast-framework/raw/master/doc/img/sample-json-result.png
2. POST 方式
在浏览器中打开 - application/json; charset=UTF-8 :
POST localhost:8080/user/add HTTP/1.1
Content-Type: application/json
Cache-Control: no-cache
{
"name":"BYSocket",
"age":23
}
会得到如下结果:
http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://github.com/JeffLi1993/fast-framework/raw/master/doc/img/json-post.png
更多详情请查阅:https://github.com/JeffLi1993/fast-framework
页:
[1]