-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
495 lines (318 loc) · 18 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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#303030"/>
<meta http-equiv="x-ua-compatible" content="ie=edge">
<script src="/js/busuanzi.pure.mini.js" async></script>
<meta name="keywords" content="java,JVM,code,program,架构,工程师" />
<meta name="description" content="一个专注一coding的网站。提供丰富编程知识,包括Spring、Java、EmberJS、SpringBoot等等技术。" />
<link rel="icon" type="image/x-icon" href="/image/favicon.ico">
<title>一个专注一coding的网站。</title>
<!-- stylesheets list from config.yml -->
<link rel="stylesheet" href="/css/pure-min.css">
<link rel="stylesheet" href="/css/xoxo.css">
<meta name="generator" content="Hexo 5.0.2"><link rel="alternate" href="/atom.xml" title="null" type="application/atom+xml">
</head>
<body>
<div class="nav-container">
<nav class="home-menu pure-menu pure-menu-horizontal">
<a class="pure-menu-heading" href="/">
<!--
<img class="avatar" src="/image/logo1.png">
-->
<svg t="1696736567728" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3064" width="40px" height="50px"><path d="M203.8 255.1h619c12.7 0 23 10.4 23 23v391.1c0 12.7-10.4 23-23 23h-619c-12.7 0-23-10.4-23-23V278.1c0-12.7 10.3-23 23-23z" fill="#5B79FB" p-id="3065"></path><path d="M215.3 300.7h596v320h-596z" fill="#FFFFFF" p-id="3066"></path><path d="M499.1 640.6h28.3v28.3h-28.3z" fill="#FF7E71" p-id="3067"></path><path d="M180.8 692.1h665l115.5 49.2h-896z" fill="#5B79FB" p-id="3068"></path><path d="M65.3 741.3h896v12.9c0 9.1-7.5 16.6-16.6 16.6H81.9c-9.1 0-16.6-7.5-16.6-16.6v-12.9z" fill="#5B79FB" p-id="3069"></path><path d="M422.8 750.3h181v11.5h-181z" fill="#FF7E71" p-id="3070"></path><path d="M196.7 696.1h62.2c-3.2 1.9-6.3 3.8-9.4 5.7h-64.4c3.9-1.9 7.8-3.8 11.6-5.7zM310.7 696.1h62.2l-5.1 5.7h-64.5c2.4-1.9 4.9-3.8 7.4-5.7zM424.7 696.1h62.2c-0.2 1.9-0.5 3.8-0.9 5.7h-64.6c1.2-1.9 2.3-3.8 3.3-5.7zM538.8 696.1H601c1.1 1.9 2.3 3.8 3.3 5.7h-64.6c-0.2-1.9-0.6-3.8-0.9-5.7zM652.8 696.1H715c2.6 1.9 5.1 3.8 7.6 5.7h-64.5c-1.7-1.9-3.5-3.8-5.3-5.7zM766.9 696.1h62.2c4 1.9 7.9 3.8 11.8 5.7h-64.6c-3.1-1.9-6.2-3.8-9.4-5.7zM176.7 705.9h66.1c-3.1 1.9-6.3 3.8-9.4 5.7H165c3.8-1.9 7.8-3.8 11.7-5.7zM298 705.9h66.1c-1.7 1.9-3.5 3.8-5.1 5.7h-68.5c2.4-1.9 5-3.8 7.5-5.7zM419.3 705.9h66.2l-0.9 5.7h-68.5c1-1.9 2.1-3.8 3.2-5.7zM540.5 705.9h66.2l3.3 5.7h-68.5c-0.3-1.9-0.6-3.8-1-5.7zM661.9 705.9H728c2.5 1.9 5.1 3.8 7.5 5.7h-68.4c-1.7-1.9-3.5-3.8-5.2-5.7zM783.2 705.9h66.3l11.7 5.7h-68.5c-3.1-1.9-6.3-3.8-9.5-5.7zM156.6 715.8h70.1c-3.2 1.9-6.2 3.8-9.4 5.7H145c3.8-1.9 7.6-3.8 11.6-5.7zM285.1 715.8h70.2c-1.8 1.9-3.4 3.8-5.1 5.7h-72.4c2.4-1.9 4.8-3.8 7.3-5.7zM413.7 715.8h70.2c-0.4 1.9-0.6 3.8-0.9 5.7h-72.5c1.1-1.9 2.1-3.8 3.2-5.7zM542.3 715.8h70.2c1 1.9 2.2 3.8 3.3 5.7h-72.5c-0.3-1.9-0.7-3.8-1-5.7zM670.9 715.8h70.2c2.4 1.9 5 3.8 7.5 5.7h-72.4c-1.8-1.9-3.6-3.8-5.3-5.7zM799.5 715.8h70.2l11.7 5.7h-72.5c-3-1.9-6.3-3.8-9.4-5.7zM136.5 725.6H890c4 1.9 7.8 3.8 11.7 5.7h-777c4.1-1.9 7.9-3.8 11.8-5.7z" fill="#A4BEFF" p-id="3071"></path><path d="M812.4 534.8v86.7H215.3V300.7h234z" fill="#E5ECFF" p-id="3072"></path></svg>
<span style="font-weight: bold;
font-size: 20px;
padding-top: 3px;
padding-left: 5px;
font-family: Chalkduster;
color: #056de8;">
xcoding.tech
</span>
<span class="title"></span>
</a>
<ul class="pure-menu-list clearfix">
<li class="pure-menu-item actived"><a href="/" class="pure-menu-link">首页</a></li>
<li class="pure-menu-item"><a href="/search" class="pure-menu-link">搜索</a></li>
<li class="pure-menu-item"><a href="/tags" class="pure-menu-link">标签</a></li>
<li class="pure-menu-item"><a href="/archives" class="pure-menu-link">归档</a></li>
<li class="pure-menu-item"><a href="/atom.xml" class="pure-menu-link">订阅</a></li>
<li class="pure-menu-item"><a href="/about" class="pure-menu-link">关于</a></li>
</ul>
</nav>
</div>
<div class="container" id="content-outer">
<div class="inner" id="content-inner">
<div class="recent-posts">
<article class="recent-post-item">
<a class="title" href="/鸡汤/KnowWhy/"><h2>Know Why ?</h2></a>
<div class="post-meta">
<time class="time" datetime="2023-10-08T09:06:29.300Z">
2023-10-08
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E8%AE%A4%E7%9F%A5/" rel="tag">认知</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E8%BD%AF%E6%96%87/" rel="tag">软文</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E9%B8%A1%E6%B1%A4/" rel="tag">鸡汤</a></li></ul>
</div>
<div class="post-excerpt">
知其所以然
</div>
<a class="more" href="/鸡汤/KnowWhy/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/鸡汤/HowToDo/"><h2>How To Do ?</h2></a>
<div class="post-meta">
<time class="time" datetime="2023-10-08T02:24:37.765Z">
2023-10-08
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E8%AE%A4%E7%9F%A5/" rel="tag">认知</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E8%BD%AF%E6%96%87/" rel="tag">软文</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E9%B8%A1%E6%B1%A4/" rel="tag">鸡汤</a></li></ul>
</div>
<div class="post-excerpt">
普通人怎样改变自己的阶层?
</div>
<a class="more" href="/鸡汤/HowToDo/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/Java/OOM问题排查/"><h2>OOM问题排查</h2></a>
<div class="post-meta">
<time class="time" datetime="2023-02-13T18:24:03.612Z">
2023-02-14
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Java/" rel="tag">Java</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/OOM/" rel="tag">OOM</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E5%86%85%E5%AD%98%E6%BA%A2%E5%87%BA/" rel="tag">内存溢出</a></li></ul>
</div>
<div class="post-excerpt">
通过本文您将学习到如何通过VisualVM分析定位OOM问题。
</div>
<a class="more" href="/Java/OOM问题排查/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/架构/MySQL主从同步配置/"><h2>MySQL主从同步配置</h2></a>
<div class="post-meta">
<time class="time" datetime="2023-02-08T15:05:37.334Z">
2023-02-08
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/MySQL/" rel="tag">MySQL</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E4%B8%BB%E4%BB%8E%E5%90%8C%E6%AD%A5/" rel="tag">主从同步</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E6%9E%B6%E6%9E%84/" rel="tag">架构</a></li></ul>
</div>
<a class="more" href="/架构/MySQL主从同步配置/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/架构/什么是中台/"><h2>什么是中台??</h2></a>
<div class="post-meta">
<time class="time" datetime="2021-05-07T15:11:38.000Z">
2021-05-07
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E4%B8%AD%E5%8F%B0/" rel="tag">中台</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E6%9E%B6%E6%9E%84/" rel="tag">架构</a></li></ul>
</div>
<div class="post-excerpt">
中台可以总结为一种思想,一种体系。其可以快速聚合后台的数据与能力,通过平台的快速开发、分析、服务编排等,提供前台更多的创新能力、是错能力。中台的本质是对后台系统功能和数据解耦、重构与复用。
</div>
<a class="more" href="/架构/什么是中台/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/Java/观察者模式/"><h2>观察者模式</h2></a>
<div class="post-meta">
<time class="time" datetime="2021-04-30T15:13:46.000Z">
2021-04-30
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Java/" rel="tag">Java</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="tag">设计模式</a></li></ul>
</div>
<a class="more" href="/Java/观察者模式/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/Spring/Spring IoC原理/"><h2>Spring IoC原理</h2></a>
<div class="post-meta">
<time class="time" datetime="2021-04-19T13:17:14.000Z">
2021-04-19
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Java/" rel="tag">Java</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Spring/" rel="tag">Spring</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/SpringFramework/" rel="tag">SpringFramework</a></li></ul>
</div>
<a class="more" href="/Spring/Spring IoC原理/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/Spring/Spring初始化回调你真的搞懂了吗?/"><h2></h2></a>
<div class="post-meta">
<time class="time" datetime="2021-04-19T07:24:46.000Z">
2021-04-19
</time>
<span class="slash">/</span>
</div>
<a class="more" href="/Spring/Spring初始化回调你真的搞懂了吗?/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/Spring/Spring后置处理器/"><h2>Spring后置处理器</h2></a>
<div class="post-meta">
<time class="time" datetime="2021-04-19T07:24:46.000Z">
2021-04-19
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Java/" rel="tag">Java</a></li><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Spring/" rel="tag">Spring</a></li></ul>
</div>
<a class="more" href="/Spring/Spring后置处理器/"> 阅读全文〉</a>
</article>
<article class="recent-post-item">
<a class="title" href="/Java/手动加载jar并实例化class/"><h2>手动加载jar并实例化class</h2></a>
<div class="post-meta">
<time class="time" datetime="2021-04-19T07:21:28.000Z">
2021-04-19
</time>
<span class="slash">/</span>
<ul class="index-tag-list" itemprop="keywords"><li class="index-tag-list-item"><a class="index-tag-list-link" href="/tags/Java/" rel="tag">Java</a></li></ul>
</div>
<a class="more" href="/Java/手动加载jar并实例化class/"> 阅读全文〉</a>
</article>
</div>
</div>
<nav class="page-nav text-center">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><span class="space">…</span><a class="page-number" href="/page/8/">8</a><a class="extend next" rel="next" href="/page/2/">〉</a>
</nav>
</div>
<a href="#" class="return-top">回到顶部</a>
<footer class="footer text-center">
<div id="bottom-inner">
<a class="bottom-item" href="https://github.com/ubuntuvim" target="_blank">GitHub</a> |
<a class="bottom-item" href="https://hexo.io" target="_blank">Powered by hexo</a>
</div>
</footer>
<script src='https://unpkg.com/[email protected]/dist/mermaid.min.js'></script>
<script>
if (window.mermaid) {
mermaid.initialize({theme: 'forest'});
}
</script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<!-- scripts list from theme config.yml -->
<script src="/js/zepto.min.js"></script>
<script>
(function(window, document, undefined) {
var timer = null;
function returnTop() {
cancelAnimationFrame(timer);
timer = requestAnimationFrame(function fn() {
var oTop = document.body.scrollTop || document.documentElement.scrollTop;
if (oTop > 0) {
document.body.scrollTop = document.documentElement.scrollTop = oTop - 50;
timer = requestAnimationFrame(fn);
} else {
cancelAnimationFrame(timer);
}
});
}
var hearts = [];
window.requestAnimationFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function(callback) {
setTimeout(callback, 1000 / 60);
}
})();
init();
function init() {
css(".heart{z-index:9999;width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
attachEvent();
gameloop();
addMenuEvent();
}
function gameloop() {
for (var i = 0; i < hearts.length; i++) {
if (hearts[i].alpha <= 0) {
document.body.removeChild(hearts[i].el);
hearts.splice(i, 1);
continue;
}
hearts[i].y--;
hearts[i].scale += 0.004;
hearts[i].alpha -= 0.013;
hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
}
requestAnimationFrame(gameloop);
}
/**
* 给logo设置点击事件
*
* - 回到顶部
* - 出现爱心
*/
function attachEvent() {
var old = typeof window.onclick === "function" && window.onclick;
var logo = document.getElementById("logo");
if (logo) {
logo.onclick = function(event) {
returnTop();
old && old();
createHeart(event);
}
}
}
function createHeart(event) {
var d = document.createElement("div");
d.className = "heart";
hearts.push({
el: d,
x: event.clientX - 5,
y: event.clientY - 5,
scale: 1,
alpha: 1,
color: randomColor()
});
document.body.appendChild(d);
}
function css(css) {
var style = document.createElement("style");
style.type = "text/css";
try {
style.appendChild(document.createTextNode(css));
} catch (ex) {
style.styleSheet.cssText = css;
}
document.getElementsByTagName('head')[0].appendChild(style);
}
function randomColor() {
// return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
return "#F44336";
}
function addMenuEvent() {
var menu = document.getElementById('menu-main-post');
if (menu) {
var toc = document.getElementById('toc');
if (toc) {
menu.onclick = function() {
if (toc) {
if (toc.style.display == 'block') {
toc.style.display = 'none';
} else {
toc.style.display = 'block';
}
}
};
} else {
menu.style.display = 'none';
}
}
}
})(window, document);
</script>
</body>
</html>