10 2019 档案

摘要:1). 文件流下载时 js blob文件大小不正确? excel乱码 res.data的字节长度length 和blob.size匹配不上。。,excel文件大小不对 axios请求里必须修改 responseType: 'blob' 'stream' 参数, 默认是json。否则axios自动使用 阅读全文
posted @ 2019-10-22 19:43 funny_coding 阅读(3348) 评论(1) 推荐(1) 编辑
摘要:4版本 登录跳转 自定义自己的成功失败handler 生成session后 set-cookie响应头用js取不到? https://github.com/axios/axios/issues/295 https://developer.mozilla.org/zh-CN/docs/Web/HTTP 阅读全文
posted @ 2019-10-14 16:10 funny_coding 阅读(259) 评论(0) 推荐(0) 编辑
摘要:1.是否可以设置过期时间 timeout ttl 对于单个key设置过期时间 需要自定义CacheManager, 见3中的问题 spring boot 1版本可以重写RedisCacheManager#computeExpiration spring boot 2版本方案 :[参考]https:/ 阅读全文
posted @ 2019-10-11 21:30 funny_coding 阅读(657) 评论(0) 推荐(0) 编辑
摘要:为了统一签名, 需要在controller之前读json输入流数据, controller的参数绑定是直接读inputStream, 但一般httpServletRequest只能读一次, 解决方法是, 在filter中直接读一次inputStream然后缓存读到的结果, 后续所有的inputStr 阅读全文
posted @ 2019-10-02 00:51 funny_coding 阅读(525) 评论(0) 推荐(0) 编辑

build beautiful things, share happiness
点击右上角即可分享
微信分享提示