posts - 261,comments - 48,views - 91万
03 2020 档案
Spring Cloud Gateway 读取、修改请求体(解决request body内容被截断)
摘要:本文涉及到的项目使用的版本如下: Spring Boot:2.0.6.RELEASE Spring Cloud:Finchley.SR2 背景: 微服务架构,在网关服务里拦截每个请求,进行日志信息记录与管理,发现当请求体过长时,只能获取到一部分body,查看拦截过滤器,发现Spring Cloud 阅读全文
posted @ 2020-03-20 13:11 miaoying 阅读(23267) 评论(3) 推荐(3) 编辑
【解决方案】docker: Error response from daemon: endpoint with name xxx already exists in network bridge
摘要:使用Docker时,在启动一个容器时,有时会遇到如下问题: docker: Error response from daemon: service endpoint with name xxx already exists. 说明此端口已经被名为xxx的容器占用了。我这里遇到的是问题是,在启动my_ 阅读全文
posted @ 2020-03-17 16:57 miaoying 阅读(13554) 评论(0) 推荐(1) 编辑
在docker容器内部抓包分析https请求
摘要:背景:腾讯云容器,底层是Linux,容器跑的是一个网关服务,内部端口与对外端口都是9999第一步:安装 tcpdump apk add tcpdump 第二步:执行 ifconfig,查看网卡,我们网卡是 eth0 bash-4.3# ifconfig eth0 Link encap:Etherne 阅读全文
posted @ 2020-03-13 11:11 miaoying 阅读(2566) 评论(0) 推荐(0) 编辑
java代码执行curl命令
摘要:核心代码: public static String execCurl(String[] cmds) { ProcessBuilder process = new ProcessBuilder(cmds); Process p; try { p = process.start(); Buffered 阅读全文
posted @ 2020-03-06 15:34 miaoying 阅读(14241) 评论(0) 推荐(2) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示