Silentdoer

导航

2020年4月10日 #

Java反射零碎总结

摘要: 1.修正一个错误的记忆,之前以为Xx.class.getDeclaredField("...")能够获取到包括其父类的所有属性是错误的,如果该属性只在父类里有且是private是获取不到的,必须用父类的.class.getDeclaredField("..")来获取; 2.如果是private的普通 阅读全文

posted @ 2020-04-10 15:46 Silentdoer 阅读(147) 评论(0) 推荐(0) 编辑

SpringBoot高并发调优

摘要: 1.建立连接超时时间,单位毫秒【它会同时配置protocol的KeepAliveTimeout和protocol的ConnectionTimeout两个参数】 server.connection-timeout=20000 2.Http服务(Tcp协议Socket服务)的最大连接数(其实可以有更大, 阅读全文

posted @ 2020-04-10 09:14 Silentdoer 阅读(27724) 评论(0) 推荐(1) 编辑