17

记一次拦截器配置 - 我的专栏 - SegmentFault 思否

 4 years ago
source link: https://segmentfault.com/a/1190000020885032
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
由于项目升级变更,开放给第三方接口参数中的时间参数由字符串类型变更为Long类型,为了第三方上传参数能像原来一样不受影响,解决的想法是在加一个过滤器,在请求体到达控制器之前,由过滤器将json对象里的时间字符串变更为时间戳。看起来简单,但实现过程中却遇到了不少问题。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK