Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resty使用反馈与建议搜集贴 #48

Open
T-baby opened this issue Dec 29, 2016 · 10 comments
Open

Resty使用反馈与建议搜集贴 #48

T-baby opened this issue Dec 29, 2016 · 10 comments

Comments

@T-baby
Copy link
Collaborator

T-baby commented Dec 29, 2016

大家可以把需要的功能、优化建议等都发到这里哈。我会根据大家的需要计划Resty的下一步开发。

@tanqimin
Copy link

会支持SSE吗?

@T-baby
Copy link
Collaborator Author

T-baby commented Dec 30, 2016

SSE功能依赖条件较多,暂不考虑实现,如果很需要这个功能的话可以自行实现哦!

@zhangqqqf
Copy link

可否集成swagger?

@jacobzeng
Copy link

感谢提供这么好的框架

现在个人想实现一个AccessLogInterceptor,遇到个问题,无法记录http status code, 目前只能记录http method, http url等等,或者是我的思路出了问题?还是说可以扩展Interceptor,增加一个handleException的方法?

@Dreampie
Copy link
Owner

Dreampie commented Apr 1, 2017

@jacobzeng 可以自己配置异常处理

app.exceptionHolder=cn.dreampie.route.holder.DefaultExceptionHolder 

@Dreampie
Copy link
Owner

Dreampie commented Apr 1, 2017

@zhangqqqf 没有使用swagger的经验,或者是否可以帮助开发一个接入插件

@byteuser
Copy link

image
根据Demo里面实现,在多层model结构toJson时出现 "permissions": [
{
"$ref": "$.attrValues.null.null"
},
{
"$ref": "$.attrValues.null.null"
},
{
"$ref": "$.attrValues.null.null"
},
{
"$ref": "$.attrValues.null.null"
},
{
"$ref": "$.attrValues.null.null"
},问题,另外,能否介绍一下 Resty序列化,反序列化的机制?

@Dreampie
Copy link
Owner

@byteuser json序列化使用的是fastjson,$ref代表引用对象,具体可以查询fastjon的文档

@loao
Copy link

loao commented Oct 17, 2017

能不放开HttpServletRequest这个类的对象,在使用Apache Oltu的时候发现该框架需要的HttpServletRequest对象是无法直接获取的,如果要引入其他框架需要用到HttpServletRequest的对象时,也同样会有这样的问题

@Dreampie
Copy link
Owner

@loao HttpRequest.unwrap(HttpServletRequest.class)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants