
Spring
yuu_l
这个作者很懒,什么都没留下…
展开
-
Openfeign ErrorDecoder caused java.io.IOException: stream is closed
实现错误解码器,保留 feign 服务异常信息,左侧是之前设计的。偶尔下游系统出现异常时,拿到返回结果时,居然会是stream is closed,就找了下原因。Don't use any of the above feature before get theresponse.body()就是因为使用log来输出日志,内部关闭了输入流。详细解析可以看https://stackoverflow.com/questions/61472139/openfeign-errordecoder-caus..原创 2020-12-31 23:24:52 · 2085 阅读 · 0 评论 -
Spring的AOP
在开发中,之前是为web h5所开发的后台接口,后来需要接入app,部分接口需要更改,也不能再使用以前的sessionId方式,因此开辟了权限切面,在控制层切入代理,预先执行部分逻辑。原创 2016-12-02 15:21:06 · 473 阅读 · 0 评论