-
Notifications
You must be signed in to change notification settings - Fork 218
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
自定义返回值解码 #198
Comments
看了下拦截器和自定义注解声明周期,都必须指定方法返回参数的泛型,这也就意味只能服务一种返回值的情况,有可以适配所有方法的拦截器吗,原泛型参数可以按字节码对象的形式传递给自定义的处理方法 |
同问,而且接口级别的BodyType只有编码可以配置,而解码没有地方配置 |
可以去gitee仓库,在那里我得到答案了 |
没找到答案,不过我目前可以用全局转换器临时改了改 |
https://gitee.com/dromara/forest/issues/I9G1IK gitee issue的回复里的链接已经打不开了。 |
在业务中返回json一般都是一种统一的格式,比如
有一个方法
我只需要data里的数据,可以自定义的去解析json字符串,并取data节点内的数据序列化成User对象并返回吗?
The text was updated successfully, but these errors were encountered: