摘要: public class MakeArray { public static final int ARRAYLENGTH = 1000; public static int[] makeArray() { Random r = new Random(); int[] oRtn = new int[A 阅读全文
posted @ 2019-04-14 23:47 JdestinationL 阅读(361) 评论(0) 推荐(0) 编辑
摘要: <!-- 配置springmvc的视图渲染器,让其前缀为:/ 后缀为: .jsp 将视图渲染到 /views/<method返回值>.jsp中 --> <!-- <bean class="org.springframework.web.servlet.view.InternalResourceVie 阅读全文
posted @ 2019-03-20 17:41 JdestinationL 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 并发容器 ConcurrentHashMap Hashmap多线程会导致HashMap的Entry链表形成环形数据结构,一旦形成环形数据结构,Entry的next节点永远不为空,就会产生死循环获取Entry。 HashTable使用synchronized来保证线程安全,但在线程竞争激烈的情况下Ha 阅读全文
posted @ 2019-03-19 22:15 JdestinationL 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 概念理解参考:https://blog.csdn.net/weixin_40921797/article/details/84553820 自定义的独占式可重入同步工具类 import java.util.concurrent.TimeUnit;import java.util.concurrent 阅读全文
posted @ 2019-03-19 22:15 JdestinationL 阅读(107) 评论(0) 推荐(0) 编辑