Java
文章平均质量分 50
li_cangqiong
web之路慢慢爬...
展开
-
java线程池ThreadPoolExexutor源码解析
ThreadPoolExecutor executor = new ThreadPoolExecutor(0, 1, 1, TimeUnit.SECONDS, new LinkedBlockingQueue<>(), new ThreadPoolExecutor.CallerRunsPolicy()); try { executor.execute(new Thread(new Runnable() {原创 2021-08-12 13:48:13 · 158 阅读 · 0 评论 -
setParameter,getParameter,setAttribute,getAttribute的区别
首先,setParameter()这个方法是不存在的! getParameter()是从外部获取对应参数名的参数值,参数为页面提交,包括表单提交、URL传参(类似xxx.com?user=xx),等,接收参数返回的是String类型。 HttpServletRequest类既有getAttribute(),也有getParameter()。 ...转载 2018-05-01 19:29:52 · 798 阅读 · 0 评论 -
HashSet详细源码解析
先看看HashSet的类名 public class HashSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, java.io.Serializable 继承了AbstarctSet这个抽象类,这个抽象类里面实际有一个空的默认构造方法,重写的hashcode()和equa...原创 2018-09-03 15:58:07 · 213 阅读 · 0 评论