-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1838 lines (1305 loc) · 76.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<html lang="zh-CN">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<meta name="keywords" content="YangMing's Blog">
<meta name="description" content="YangMing's Blog">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit|ie-stand|ie-comp">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>YangMing's Blog</title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" type="text/css" href="/libs/awesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
<link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
<link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
<link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
<link rel="stylesheet" type="text/css" href="/css/matery.css">
<link rel="stylesheet" type="text/css" href="/css/my.css">
<style type="text/css">
</style>
<script src="/libs/jquery/jquery-2.2.0.min.js"></script>
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
<script src="https://v1.hitokoto.cn/?c=d&encode=js&select=%23hitokoto" defer></script>
<link rel="stylesheet" href="/css/prism-tomorrow.css" type="text/css"></head>
<body>
<header class="navbar-fixed">
<nav id="headNav" class="bg-color nav-transparent">
<div id="navContainer" class="nav-wrapper container">
<div class="brand-logo">
<a href="/" class="waves-effect waves-light">
<img src="/medias/logo.png" class="logo-img" alt="LOGO">
<span class="logo-span">YangMing's Blog</span>
</a>
</div>
<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fa fa-navicon"></i></a>
<ul class="right">
<li class="hide-on-med-and-down">
<a href="/" class="waves-effect waves-light">
<i class="fa fa-home"></i>
<span>首页</span>
</a>
</li>
<li class="hide-on-med-and-down">
<a href="/tags" class="waves-effect waves-light">
<i class="fa fa-tags"></i>
<span>标签</span>
</a>
</li>
<li class="hide-on-med-and-down">
<a href="/categories" class="waves-effect waves-light">
<i class="fa fa-bookmark"></i>
<span>分类</span>
</a>
</li>
<li class="hide-on-med-and-down">
<a href="/archives" class="waves-effect waves-light">
<i class="fa fa-archive"></i>
<span>归档</span>
</a>
</li>
<li class="hide-on-med-and-down">
<a href="/about" class="waves-effect waves-light">
<i class="fa fa-user-circle-o"></i>
<span>关于</span>
</a>
</li>
<li class="hide-on-med-and-down">
<a href="/friends" class="waves-effect waves-light">
<i class="fa fa-address-book"></i>
<span>友情链接</span>
</a>
</li>
<li>
<a href="#searchModal" class="modal-trigger waves-effect waves-light">
<i id="searchIcon" class="fa fa-search" title="搜索"></i>
</a>
</li>
</ul>
<div id="mobile-nav" class="side-nav sidenav">
<div class="mobile-head bg-color">
<img src="/medias/logo.png" class="logo-img circle responsive-img">
<div class="logo-name">YangMing's Blog</div>
<div class="logo-desc">
杨明的个人博客
</div>
</div>
<ul class="menu-list mobile-menu-list">
<li>
<a href="/" class="waves-effect waves-light">
<i class="fa fa-fw fa-home"></i>
首页
</a>
</li>
<li>
<a href="/tags" class="waves-effect waves-light">
<i class="fa fa-fw fa-tags"></i>
标签
</a>
</li>
<li>
<a href="/categories" class="waves-effect waves-light">
<i class="fa fa-fw fa-bookmark"></i>
分类
</a>
</li>
<li>
<a href="/archives" class="waves-effect waves-light">
<i class="fa fa-fw fa-archive"></i>
归档
</a>
</li>
<li>
<a href="/about" class="waves-effect waves-light">
<i class="fa fa-fw fa-user-circle-o"></i>
关于
</a>
</li>
<li>
<a href="/friends" class="waves-effect waves-light">
<i class="fa fa-fw fa-address-book"></i>
友情链接
</a>
</li>
<li><div class="divider"></div></li>
<li>
<a href="https://github.com/learneryog" class="waves-effect waves-light" target="_blank">
<i class="fa fa-github-square fa-fw"></i>Fork Me
</a>
</li>
</ul>
</div>
</div>
<style>
.nav-transparent .github-corner {
display: none !important;
}
.github-corner {
position: absolute;
z-index: 10;
top: 0;
right: 0;
border: 0;
transform: scale(1.1);
}
.github-corner svg {
color: #0f9d58;
fill: #fff;
height: 64px;
width: 64px;
}
.github-corner:hover .octo-arm {
animation: a 0.56s ease-in-out;
}
.github-corner .octo-arm {
animation: none;
}
@keyframes a {
0%,
to {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
</style>
<a href="https://github.com/learneryog" class="github-corner tooltipped hide-on-med-and-down" target="_blank"
data-tooltip="Fork Me" data-position="left" data-delay="50">
<svg viewBox="0 0 250 250" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg>
</a>
</nav>
</header>
<style>
.carousel-control {
width: 45px;
height: 45px;
line-height: 55px;
border-radius: 45px;
background: transparent;
cursor: pointer;
z-index: 100;
}
#prev-cover {
position: absolute;
top: 48%;
left: 8px;
}
#next-cover {
position: absolute;
top: 48%;
right: 8px;;
}
#prev-cover i {
margin-right: 3px;
}
#next-cover i {
margin-left: 3px;
}
.carousel-control:hover {
background-color:rgba(0, 0, 0, .4);
}
.carousel-control i {
color: #fff;
font-size: 2.4rem;
}
</style>
<div class="carousel carousel-slider center index-cover" data-indicators="true" style="margin-top: -64px;">
<div id="prev-cover" class="left waves-effect carousel-control">
<i class="icon fa fa-angle-left"></i>
</div>
<div id="next-cover" class="right waves-effect carousel-control">
<i class="icon fa fa-angle-right"></i>
</div>
<div class="carousel-item red white-text bg-cover about-cover">
<div class="container">
<div class="row">
<div class="col s10 offset-s1 m8 offset-m2 l8 offset-l2">
<div class="brand">
<div class="title center-align">
杨明的博客
</div>
<div class="description center-align">
<span id="jinrishici-sentence">正在加载今日诗词....</span>
</div>
</div>
</div>
</div>
<script>
// 每天切换 banner 图. Switch banner image every day.
$('.bg-cover').css('background-image', 'url(/medias/banner/' + new Date().getSeconds() + '.jpg)');
</script>
<div class="cover-btns">
<a href="#indexCard" class="waves-effect waves-light btn">
<i class="fa fa-angle-double-down"></i>开始阅读
</a>
<a href="https://github.com/learneryog" class="waves-effect waves-light btn" target="_blank">
<i class="fa fa-github-alt"></i>Github
</a>
</div>
<div class="cover-social-link">
<a href="mailto:[email protected]" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
<i class="fa fa-envelope-open"></i>
</a>
<a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=794961994" class="tooltipped" data-tooltip="QQ联系我: 794961994" data-position="top" data-delay="50">
<i class="fa fa-qq"></i>
</a>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/17.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">ArrayList与LinkList对比</div>
<div class="description center-align">
本文简要总结一下java中ArrayList与LinkedList的区别,这在面试中也是常常会问到的一个知识点。
先来看一下ArrayList和LinkedList的关系是怎样的:
从继承体系可以看到,ArrayList与Linked
</div>
<div class="cover-btns">
<a href="/2019/05/04/ArrayList与LinkedList对比/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/8.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">ORM与反射</div>
<div class="description center-align">
ORM(Object Relation Mapping)对象关系模型关系模型(数据库表): 表、字段、字段类型对象模型(java实体类):类、属性、属性类型通过ORM框架解除模型之间的阻抗。
利用反射实现ORM中的准备预编译SQL语句
</div>
<div class="cover-btns">
<a href="/2019/05/25/ORM与反射/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/6.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">Ubuntu环境下安装配置Docker</div>
<div class="description center-align">
安装环境:Ubuntu 18.04
1. 系统要求Ubuntu系统对Docker的支持十分成熟,只要是64位的即可。Docker目前支持的最低的Ubuntu版本为14.04 LTS,但实际上从稳定性上考虑,推荐使用16.04 LTS或1
</div>
<div class="cover-btns">
<a href="/2019/05/30/Ubuntu环境下安装配置Docker/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/8.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">hashCode和equals方法</div>
<div class="description center-align">
hashCode和equals方法是Object类中的两个常用方法。其定义如下:
// hashCode()方法默认是native方法:
public native int hashCode();
// equals(obj)默认比较的是
</div>
<div class="cover-btns">
<a href="/2019/05/21/hashCode和equals方法/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/30.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">线程池</div>
<div class="description center-align">
为什么要用线程池?单线程方式存在以下几个问题:
线程的工作周期:假设线程创建所需时间为T1,线程执行任务所需时间为T2,线程销毁所需的时间为T3,往往是T1+T3大于T2,所以如果频繁的创建线程会损耗过多的额外时间。
如果有任务来了,再去
</div>
<div class="cover-btns">
<a href="/2019/06/04/线程池/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/0.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">单例模式(Singleton Pattern)</div>
<div class="description center-align">
单例模式是最简单的设计模式之一,这种设计模式是一种创建型的模式,提供了创建对象的最佳方式。
单例模式顾名思义就是一个类只允许创建一个实例,因此它只涉及到一个单一的类,并且这个类要完成自己创建自己的实例的工作,并保证能且只能创建一个实例。这个
</div>
<div class="cover-btns">
<a href="/2019/05/21/单例模式(Singleton-Pattern)/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/8.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">浅谈ArrayList</div>
<div class="description center-align">
一、ArrayList的继承体系和特点ArrayList总体继承体系图如下:
ArrayList的特点主要有以下几点:
ArrayList在内存中分配连续的存储空间,可理解为长度可变的数组。
ArrayList存储元素可以重复,存储顺序
</div>
<div class="cover-btns">
<a href="/2019/05/22/浅谈ArrayList/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/13.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">ConcurrentHashMap基础</div>
<div class="description center-align">
ConcurrentHashMap作为Concurrent一族,其有着高效地并发操作,相比Hashtable的笨重,ConcurrentHashMap则更胜一筹了。在1.8版本以前,ConcurrentHashMap采用分段锁的概念,使锁更加细化,但是1.8已经改变了这种思路,而是利用CAS+Synchronized来保证并发更新的安全,当然底层采用数组+链表+红黑树的存储结构。
</div>
<div class="cover-btns">
<a href="/2019/08/05/ConcurrentHashMap基础/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/28.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">ConcurrentHashMap源码(二)</div>
<div class="description center-align">
ConcurrentHashMap作为Concurrent一族,其有着高效地并发操作,相比Hashtable的笨重,ConcurrentHashMap则更胜一筹了。在1.8版本以前,ConcurrentHashMap采用分段锁的概念,使锁更加细化,但是1.8已经改变了这种思路,而是利用CAS+Synchronized来保证并发更新的安全,当然底层采用数组+链表+红黑树的存储结构。
</div>
<div class="cover-btns">
<a href="/2019/08/05/ConcurrentHashMap源码(二)/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/24.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">Spring源码之核心容器</div>
<div class="description center-align">
spring-beans和spring-core模块是Spring框架的核心模块,包含了控制反转(IOC)和依赖注入(DI)。BeanFactory接口是Spring框架中的核心接口,它是工厂模式的具体实现。BeanFactory使用控制反转对应用程序的配置和依赖性规范与实际的应用程序代码进行了分离。但BeanFactory容器实例化后并不会自动实例化Bean,只有当Bean被使用时BeanFactory容器才会对该Bean进行实例化与依赖关系的装配。
</div>
<div class="cover-btns">
<a href="/2019/08/09/Spring源码之核心容器/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/4.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">java NIO浅析</div>
<div class="description center-align">
NIO(Non-blocking I/O,在Java领域,也称为New I/O),是一种同步非阻塞的I/O模型,也是I/O多路复用的基础,已经被越来越多地应用到大型应用服务器,成为解决高并发与大量连接、I/O处理问题的有效方式。
NIO
</div>
<div class="cover-btns">
<a href="/2019/05/25/java-NIO浅析/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/25.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">java反射原理</div>
<div class="description center-align">
一、什么是反射?  简单来说,反射可以帮助我们在动态运行的时候,对于任意一个类,可以获取其所有的方法(包括public、protected、private和默认状态的),所有的变量(包括public、protected、
</div>
<div class="cover-btns">
<a href="/2019/05/25/java反射原理/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/10.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">JVM总结</div>
<div class="description center-align">
JVM 是可运行 Java 代码的假想计算机 ,包括一套字节码指令集、一组寄存器、一个栈、一个垃圾回收,堆 和 一个存储方法域。JVM 是运行在操作系统之上的,它与硬件没有直接的交互。
</div>
<div class="cover-btns">
<a href="/2019/08/08/JVM总结/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
<div class="carousel-item amber white-text carousel-post bg-cover"
style="background-image: url('/medias/featureimages/28.jpg');">
<div class="container">
<div class="row">
<div class="col s10 offset-s1">
<div class="title center-align">ConcurrentHashMap源码(一)</div>
<div class="description center-align">
ConcurrentHashMap作为Concurrent一族,其有着高效地并发操作,相比Hashtable的笨重,ConcurrentHashMap则更胜一筹了。在1.8版本以前,ConcurrentHashMap采用分段锁的概念,使锁更加细化,但是1.8已经改变了这种思路,而是利用CAS+Synchronized来保证并发更新的安全,当然底层采用数组+链表+红黑树的存储结构。
</div>
<div class="cover-btns">
<a href="/2019/08/05/ConcurrentHashMap源码(一)/" class="waves-effect waves-light btn" target="_blank">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$(function () {
let coverSlider = $('.carousel');
coverSlider.carousel({
duration: Number('120'),
fullWidth: true,
indicators: 'true' === 'true'
});
let carouselIntervalId;
// Loop to call the next cover article picture.
let autoCarousel = function() {
carouselIntervalId = setInterval(function () {
coverSlider.carousel('next');
}, 5000);
};
autoCarousel();
let restartPlay = function () {
clearInterval(carouselIntervalId);
autoCarousel();
};
// prev and next cover post.
$('#prev-cover').click(function () {
coverSlider.carousel('prev');
restartPlay();
});
$('#next-cover').click(function () {
coverSlider.carousel('next');
restartPlay();
});
});
</script>
<main class="content">
<div id="indexCard" class="index-card">
<div class="container ">
<div class="card">
<div class="card-content">
<i class="fa fa-volume-up fa-lg fa-fw text-color"></i> <span id="hitokoto">一言API请求超时。请稍后重试。</span>
<link rel="stylesheet" href="/libs/aplayer/APlayer.min.css">
<div class="music-player">
<div class="title center-align">
<i class="fa fa-music"></i> 听听音乐
</div>
<div class="row">
<div class="col l8 offset-l2 m10 offset-m1 s12">
<div id="aplayer" class="music"></div>
</div>
</div>
</div>
<script src="/libs/aplayer/APlayer.min.js"></script>
<script>
$(function () {
new APlayer({
container: document.getElementById('aplayer'),
fixed: 'false' === 'true',
autoplay: 'true' === 'true',
theme: '#42b983',
loop: 'all',
order: 'list',
preload: 'auto',
volume: Number('0.7'),
listFolded: 'false' === 'true',
listMaxHeight: '',
audio: JSON.parse('[{"name":"理想","artist":"赵雷","url":"/medias/music/赵雷 - 理想.mp3","cover":"/medias/music/cover7.jpg"},{"name":"得不到你","artist":"隔壁老樊","url":"/medias/music/隔壁老樊 - 得不到你.mp3","cover":"/medias/music/cover1.jpg"},{"name":"四块五","artist":"隔壁老樊","url":"/medias/music/隔壁老樊 - 四块五.mp3","cover":"/medias/music/cover3.jpg"},{"name":"声声慢","artist":"崔开潮","url":"/medias/music/崔开潮 - 声声慢.mp3","cover":"/medias/music/cover5.jpg"},{"name":"世本常态","artist":"隔壁老樊","url":"/medias/music/隔壁老樊 - 世本常态.mp3","cover":"/medias/music/cover2.jpg"},{"name":"活着","artist":"郝云","url":"/medias/music/郝云 - 活着.mp3","cover":"/medias/music/cover6.jpg"},{"name":"我曾","artist":"隔壁老樊","url":"/medias/music/隔壁老樊 - 我曾.mp3","cover":"/medias/music/cover4.jpg"}]')
});
});
</script>
<div id="recommend-sections" class="recommend">
<div class="title"><i class="fa fa-thumbs-o-up"></i> 推荐文章</div>
<div class="row">
<div class="col s12 m6" >
<div class="post-card" style="background-image: url('/medias/featureimages/17.jpg')">
<div class="post-body">
<div class="post-categories">
<a href="/categories/技术文章/" class="category" target="_blank">技术文章</a>
<a href="/categories/技术文章/集合/" class="category" target="_blank">集合</a>
</div>
<a href="/2019/05/04/ArrayList与LinkedList对比/" target="_blank">
<h3 class="post-title">ArrayList与LinkList对比</h3>
</a>
<p class="post-description">
本文简要总结一下java中ArrayList与LinkedList的区别,这在面试中也是常常会问到的一个知识点。
先来看一下ArrayL
</p>
<a href="/2019/05/04/ArrayList与LinkedList对比/" target="_blank"
class="read-more btn waves-effect waves-light" style="background: linear-gradient(to right, #FF5E3A 0%, #FF2A68 100%)">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
<div class="col s12 m6" >
<div class="post-card" style="background-image: url('/medias/featureimages/24.jpg')">
<div class="post-body">
<div class="post-categories">
<a href="/categories/java/" class="category" target="_blank">java</a>
<a href="/categories/java/框架/" class="category" target="_blank">框架</a>
<a href="/categories/java/框架/Spring/" class="category" target="_blank">Spring</a>
</div>
<a href="/2019/08/09/Spring源码之核心容器/" target="_blank">
<h3 class="post-title">Spring源码之核心容器</h3>
</a>
<p class="post-description">
spring-beans和spring-core模块是Spring框架的核心模块,包含了控制反转(IOC)和依赖注入(DI)。BeanFactory接口是Spring框架中的核心接口,它是工厂模式的具体实现。BeanFactory使用控制反转对应用程序的配置和依赖性规范与实际的应用程序代码进行了分离。但BeanFactory容器实例化后并不会自动实例化Bean,只有当Bean被使用时BeanFactory容器才会对该Bean进行实例化与依赖关系的装配。
</p>
<a href="/2019/08/09/Spring源码之核心容器/" target="_blank"
class="read-more btn waves-effect waves-light" style="background: linear-gradient(to right, #EF4DB6 0%, #C643FC 100%)">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
<div class="col s12 m6" data-aos="zoom-in-up">
<div class="post-card" style="background-image: url('/medias/featureimages/29.jpg')">
<div class="post-body">
<div class="post-categories">
<a href="/categories/JMM内存模型/" class="category" target="_blank">JMM内存模型</a>
</div>
<a href="/2019/07/31/谈谈volatile/" target="_blank">
<h3 class="post-title">谈谈volatile</h3>
</a>
<p class="post-description">
Java语言为了解决并发编程中存在的原子性、可见性和有序性问题,提供了一系列和并发处理相关的关键字,比如synchronized、vola
</p>
<a href="/2019/07/31/谈谈volatile/" target="_blank"
class="read-more btn waves-effect waves-light" style="background: linear-gradient(to right, #1AD6FD 0%, #1D62F0 100%)">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
<div class="col s12 m6" data-aos="zoom-in-up">
<div class="post-card" style="background-image: url('/medias/featureimages/10.jpg')">
<div class="post-body">
<div class="post-categories">
<a href="/categories/java/" class="category" target="_blank">java</a>
<a href="/categories/java/JVM/" class="category" target="_blank">JVM</a>
</div>
<a href="/2019/08/08/JVM总结/" target="_blank">
<h3 class="post-title">JVM总结</h3>
</a>
<p class="post-description">
JVM 是可运行 Java 代码的假想计算机 ,包括一套字节码指令集、一组寄存器、一个栈、一个垃圾回收,堆 和 一个存储方法域。JVM 是运行在操作系统之上的,它与硬件没有直接的交互。
</p>
<a href="/2019/08/08/JVM总结/" target="_blank"
class="read-more btn waves-effect waves-light" style="background: linear-gradient(to right, #FFCC00 0%, #FF9500 100%)">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
<div class="col s12 m6" data-aos="zoom-in-up">
<div class="post-card" style="background-image: url('/medias/featureimages/20.jpg')">
<div class="post-body">
<div class="post-categories">
<a href="/categories/java/" class="category" target="_blank">java</a>
</div>
<a href="/2019/05/22/基于JDK8的HashMap详解/" target="_blank">
<h3 class="post-title">基于JDK8的HashMap详解</h3>
</a>
<p class="post-description">
摘要HashMap是程序员使用频率较高的一种用于映射(键值对)处理的数据类型,随着JDK(Java Development Kit)版本的更
</p>
<a href="/2019/05/22/基于JDK8的HashMap详解/" target="_blank"
class="read-more btn waves-effect waves-light" style="background: linear-gradient(to right, #4cbf30 0%, #0f9d58 100%)">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
<div class="col s12 m6" data-aos="zoom-in-up">
<div class="post-card" style="background-image: url('/medias/featureimages/23.jpg')">
<div class="post-body">
<div class="post-categories">
<a href="/categories/并发/" class="category" target="_blank">并发</a>
</div>
<a href="/2019/08/01/AQS学习笔记/" target="_blank">
<h3 class="post-title">AQS学习笔记</h3>
</a>
<p class="post-description">
AQS简介
AbstractQueuedSynchronizer简称AQS,是一个用于构建锁和同步容器的框架。事实上concurrent包
</p>
<a href="/2019/08/01/AQS学习笔记/" target="_blank"
class="read-more btn waves-effect waves-light" style="background: linear-gradient(to right, #C644FC 0%, #5856D6 100%)">
<i class="icon fa fa-eye fa-fw"></i>阅读更多
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 所有文章卡片 -->
<article id="articles" class="container articles">
<div class="row article-row">
<div class="article col s12 m6 l4 overflow-policy" data-aos="zoom-in">
<div class="card">
<a href="/2019/08/09/Spring源码之核心容器/">
<div class="card-image">