上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 77 下一页

tomcat ip白名单(二)openshift无法同时支持http和https tunnel(http+tcp),方案一流产

摘要: 1 openshift 背景,为什么项目二(http springboot用https域名访问)与项目一(双向ssl透传)可以共存 * edge - TLS termination is done by the router and http is used to communicate with 阅读全文
posted @ 2023-10-17 00:08 silyvin 阅读(92) 评论(0) 推荐(0)

bq事故

摘要: 生产者消费者应当使用2吧锁 阅读全文
posted @ 2023-10-13 11:08 silyvin 阅读(13) 评论(0) 推荐(0)

带宽

摘要: 假设qps为500 request 平均长度1K,response平均长度200K 则每秒流量为入站1K*500=500KB/s=4Mbit/s 出站200K*500=10MB/s=80Mbit/s 阅读全文
posted @ 2023-10-13 00:20 silyvin 阅读(62) 评论(0) 推荐(0)

sock5代理及隧道

摘要: 可以额外提供SOCKS5代理支持。 1 引出 https://www.cnblogs.com/du-better/p/6519502.html java 使用代理发邮件 java发送邮件功能支持代理,但是不支持http代理,支持sock代理(支持SOCKS V4或V5协议)并且连接代理不需要用户名和 阅读全文
posted @ 2023-10-10 12:57 silyvin 阅读(225) 评论(0) 推荐(0)

tomcat ip白名单

摘要: 1 如果加在四层,则拿到的是f5的ip 如果加在七层,报文可以伪造 2 https://www.jianshu.com/p/d67dbd236748?utm_campaign=hugo&utm_content=note&utm_medium=seo_notes&utm_source=recommen 阅读全文
posted @ 2023-10-08 00:36 silyvin 阅读(100) 评论(0) 推荐(0)

javassist改类

摘要: package agent; import javassist.CannotCompileException; import javassist.ClassPool; import javassist.CtBehavior; import javassist.CtClass; import java 阅读全文
posted @ 2023-09-20 17:06 silyvin 阅读(230) 评论(0) 推荐(0)

main 与 test 资源文件冲突

摘要: 一个文件同时存在于xxx-war下, main的在classes下 test的在classess-test下 1)打包时不包括test目录下 https://zhuanlan.zhihu.com/p/630642784 2)打包时忽略test的编译 -DskipTests与-Dmaven.test. 阅读全文
posted @ 2023-09-20 17:04 silyvin 阅读(18) 评论(0) 推荐(0)

future task cancel

摘要: 1 FutureTask.cancel 干了啥 //有一个入参,需要说明task是否是可中断的 public boolean cancel(boolean mayInterruptIfRunning) { if (state != NEW) return false; if (mayInterrup 阅读全文
posted @ 2023-09-04 20:33 silyvin 阅读(36) 评论(0) 推荐(0)

cglib获取原始类

摘要: import java.lang.reflect.Proxy; public class ProxyUtils { public static final String GUICE_PROXY_FLAG = "$EnhancerByGuice$"; public static final Strin 阅读全文
posted @ 2023-08-17 13:35 silyvin 阅读(175) 评论(0) 推荐(0)

getMethods与public override方法

摘要: public class TT { public static void main(String[] args) { System.out.println(B.class.getMethods().length); System.out.println(C.class.getMethods().le 阅读全文
posted @ 2023-07-31 17:40 silyvin 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 77 下一页