上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 79 下一页

bq事故

摘要: 生产者消费者应当使用2吧锁 阅读全文
posted @ 2023-10-13 11:08 silyvin 阅读(23) 评论(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 阅读(84) 评论(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 阅读(113) 评论(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 阅读(245) 评论(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 阅读(32) 评论(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 阅读(51) 评论(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 阅读(184) 评论(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 阅读(52) 评论(0) 推荐(0)

什么是 read timeout【重要】

摘要: SocketTimeout - Defines the socket timeout (SO_TIMEOUT) in milliseconds, which is the timeout for waiting for data or, put differently, a maximum peri 阅读全文
posted @ 2023-07-31 17:31 silyvin 阅读(98) 评论(0) 推荐(0)

Netty 作为 http client 请求https 的 get与post(二)双向ssl

摘要: 接 Netty 作为 http client 请求https 的 get与post , package com.example.demo;import io.netty.bootstrap.Bootstrap;import io.netty.buffer.ByteBuf;import io.nett 阅读全文
posted @ 2023-07-17 22:26 silyvin 阅读(412) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 79 下一页