上一页 1 2 3 4 5 6 7 8 9 ··· 70 下一页

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 阅读(122) 评论(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 阅读(18) 评论(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 阅读(32) 评论(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 阅读(185) 评论(0) 推荐(0) 编辑

byte转string再转回为有损过程

摘要: private class HostRemoveResponseModifier implements Modifier { protected String getHost() { return url; } @Override public byte[] mod(byte[] origin) { 阅读全文
posted @ 2023-07-03 11:30 silyvin 阅读(14) 评论(0) 推荐(0) 编辑

非静态内部类newInstance

摘要: https://stackoverflow.com/questions/25634542/newinstance-with-inner-classes Non-static inner classes need an instance of the outer class to work prope 阅读全文
posted @ 2023-07-03 11:17 silyvin 阅读(12) 评论(0) 推荐(0) 编辑

-DskipTests与-Dmaven.test.skip

摘要: -DskipTests,不执行测试用例,但编译测试用例类生成相应的class文件至target/test-classes下。 -Dmaven.test.skip=true,不执行测试用例,也不编译测试用例类。 阅读全文
posted @ 2023-04-13 10:41 silyvin 阅读(13) 评论(0) 推荐(0) 编辑

使用MAT时的Shallow Size和 Retained Size的区别(二)

摘要: 理解VisualVM中的保留大小(Retained Size) https://www.jianshu.com/p/aaddf00a1d83 Retained size of an object is its shallow size plus the shallow sizes of the ob 阅读全文
posted @ 2023-04-04 16:39 silyvin 阅读(70) 评论(0) 推荐(0) 编辑

java object多大 java对象内存模型 数组有多长(二)偏移

摘要: 1 使用http://www.javamex.com/中提供的classmexer.jar来计算对象的大小。 2 org.openjdk.jol.info.ClassLayout Shallow org.openjdk.jol.info.GraphicLayout retained 3 自写 htt 阅读全文
posted @ 2023-03-30 10:53 silyvin 阅读(37) 评论(0) 推荐(0) 编辑

证书链

摘要: 一层公钥-一层签名二层公钥-一层签名三层公钥-一层签名 二层公钥解密三层签名,验证三层公钥一层公钥解密二层签名,验证二层公钥root公钥解密一层签名,验证一层公钥 阅读全文
posted @ 2023-03-16 11:56 silyvin 阅读(18) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 70 下一页