踩过的坑
我在人间凑数的日子~
我在人间凑数的日子
展开
-
有关于 response.setContentType设置请求类型不生效的两种解决方案
public String test(HttpServletRequest request, HttpServletResponse response) { response.setContentType("application/pdf"); return "true"; }问题:spring架构使用response.setContentType不...原创 2020-03-18 15:18:51 · 6649 阅读 · 3 评论 -
异常:getInputStream() has already been called for this request
异常:getInputStream() has already been called for this request...造成异常的代码: 从请求中获取body参数 BufferedReader reader = request.getReader(); while ((str = reader.readLine()) != null) { ...原创 2020-02-26 11:09:41 · 9431 阅读 · 4 评论 -
关于Redis的远程连接 Connection time out 问题
redis版本: redis-5.0.2Linux版本:CenterOS 7安装参考:https://www.cnblogs.com/feinian/p/9825232.html问题描述:安装redis完成,并修改了配置。 把bind 127.0.0.1 修改成bind 0.0.0.0 。 (目的:允许远程连接访问) 开启了守护进程 :把daemonize no 改为 d...原创 2018-12-20 13:25:24 · 17106 阅读 · 3 评论