-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
813 lines (513 loc) · 36.3 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
<!DOCTYPE html>
<html>
<head>
<title>超的博客</title>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta property="og:title" content="超的博客" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="zh" />
<meta property="og:url" content="https://dccmmtop.github.io/" />
<link href="https://dccmmtop.github.io/index.xml" rel="alternate" type="application/rss+xml" title="超的博客" />
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<link href="https://dccmmtop.github.io/webfonts/ptserif/main.css" rel='stylesheet' type='text/css'>
<link href="https://dccmmtop.github.io/webfonts/source-code-pro/main.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href=" https://dccmmtop.github.io/css/style.css">
<link rel="stylesheet" href=" https://dccmmtop.github.io/css/custom.css">
<link rel="stylesheet" href=" https://dccmmtop.github.io/css/copy-to-clipboard.css">
<script src=" https://dccmmtop.github.io/js/fastsearch.js"></script>
<script src=" https://dccmmtop.github.io/js/fuse.js"></script>
<script src=" https://dccmmtop.github.io/js/custom.js"></script>
<script src=" https://dccmmtop.github.io/js/copy-to-clipboard.js"></script>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e0fe0b20745a9435509785b9f15eb32d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
<meta name="google-site-verification" content="15Pa8fZ9IfDWw5gRPmi3YLNnHcciUc4a3Hv8cNKm-Ac" />
<meta name="generator" content="Hugo 0.120.4">
</head>
<body>
<div id="container">
<header id="header">
<div id="header-outer" class="outer">
<div id="header-inner" class="inner">
<a id="main-nav-toggle" class="nav-icon" href="javascript:;"></a>
<a id="logo" class="logo-text" href="https://dccmmtop.github.io/">超的博客</a>
<nav id="main-nav">
<a class="main-nav-link" href="./posts/">文章</a>
<a class="main-nav-link" href="./tags/">标签</a>
<a class="main-nav-link" href="./about/">我</a>
<a class="main-nav-link" id="search" >
<input id="inputSearch" placeholder="search">
<svg t="1634282825021" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2401" width="15" height="15"><path d="M1005.312 914.752l-198.528-198.464A448 448 0 1 0 0 448a448 448 0 0 0 716.288 358.784l198.4 198.4a64 64 0 1 0 90.624-90.432zM448 767.936A320 320 0 1 1 448 128a320 320 0 0 1 0 640z" fill="#262626" p-id="2402"></path></svg></a>
</nav>
<nav id="sub-nav">
<div id="search-form-wrap">
</div>
</nav>
</div>
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">搜索结果</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body searchResults">
</div>
</div>
</div>
</div>
</header>
<section id="main" class="outer">
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E7%BD%91%E6%A0%BC%E7%BB%84%E4%BB%B6/">网格组件</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E7%BD%91%E6%A0%BC%E7%BB%84%E4%BB%B6/" class="article-date">
<time datetime='2024-12-20T08:18:30.000+00:00' itemprop="datePublished">2024-12-20</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
GridView.count 常用属性 crossAxisCount: 每一行(如果滚动方向是垂直的话)或每一列(如果滚动方向是水平的话)有多少个子组件。这是必须指定的参数。 childAspectRatio: 子组件宽高比,默认值为 1.0,即正方形。你可以通过调整这个值来改变子组件的大小。例如
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/flutter">flutter
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E5%88%97%E8%A1%A8%E7%BB%84%E4%BB%B6/">列表组件</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E5%88%97%E8%A1%A8%E7%BB%84%E4%BB%B6/" class="article-date">
<time datetime='2024-12-11T08:19:00.000+00:00' itemprop="datePublished">2024-12-11</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
ListView 常用属性讲解 1. children 3. separatorBuilder 4. scrollDirection 5. physics 6. shrinkWrap 7. padding 8. itemExtent ListTile 使用 自定义垂直列表组件 自定义水平列表 实现水平列表商品效果 ListView.builder 使用 ListView 常用属性讲解 ListView 是 Flutter 中用于展示滚动列表的一个非常常用的小部件。以下是一些常用的 ListView 属性及其说明:
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/flutter">flutter
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E5%86%85%E7%BD%AE%E5%9B%BE%E6%A0%87%E5%92%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E5%9B%BE%E6%A0%87%E7%9A%84%E4%BD%BF%E7%94%A8/">内置图标和自定义图标的使用</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E5%86%85%E7%BD%AE%E5%9B%BE%E6%A0%87%E5%92%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E5%9B%BE%E6%A0%87%E7%9A%84%E4%BD%BF%E7%94%A8/" class="article-date">
<time datetime='2024-12-09T22:32:21.000+00:00' itemprop="datePublished">2024-12-09</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
使用内置图标 import 'package:flutter/material.dart'; void main() { runApp( MaterialApp( home: Scaffold( appBar: AppBar(title: const Text("App Title"), backgroundColor: Colors.red), body: const MyHomePage(), ), ), ); } class MyHomePage extends StatelessWidget { const MyHomePage({super.key}); @override Widget build(BuildContext context) { return const Center( child: Column( children: [ Icon(Icons.home, size: 40), SizedBox(height: 20), Icon(Icons.add_a_photo, size: 40), SizedBox(height: 20), Icon(Icons.ac_unit), ], ), ); } } 效果: 使用阿里巴巴图标库 1. 下载图标字体文件 选中图标加入购物车 打开购物车,
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/flutter">flutter
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E5%9B%BE%E7%89%87%E7%BB%84%E4%BB%B6/">图片组件</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E5%9B%BE%E7%89%87%E7%BB%84%E4%BB%B6/" class="article-date">
<time datetime='2024-12-04T22:04:46.000+00:00' itemprop="datePublished">2024-12-04</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
从网络加载图片 常用属性 对齐方式, alignment 缩放 scale 平铺方式 fit 重复方式 repeat 圆形图片 Container 方式 ClipOval 方式 ClipOval 介绍 读取本地图片 从网络加载图片 child: Image.network("https://profile-avatar.csdnimg.cn/cbaf0093c7ea46a89fd3780f1a250fbe_a141210104.jpg"), 默认保持比例缩放: class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return Center( child: Container( width: 30, height: 300, color: Colors.green, child: Image.network("https://profile-avatar.csdnimg.cn/cbaf0093c7ea46a89fd3780f1a250fbe_a141210104.jpg"), ), ); } } 效果: 常用
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/flutter">flutter
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/container%E4%BD%BF%E7%94%A8/">Container 使用</a></h1>
</header>
<div class="article-meta">
<a href="./posts/container%E4%BD%BF%E7%94%A8/" class="article-date">
<time datetime='2024-12-02T22:50:04.000+00:00' itemprop="datePublished">2024-12-02</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
Container 圆角 阴影 渐变 线性渐变 圆形渐变 扫描渐变 位移 水平方向或者垂直方向移动 旋转 缩放 完整示例 Container 它可以包含其他 Widget,并允许你控制其布局、大小、边距、填充、装饰等属性 Container 有许多属性,主要包括: alignmen
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/flutter">flutter
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">Dart 学习笔记</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" class="article-date">
<time datetime='2024-10-24T08:07:20.000+00:00' itemprop="datePublished">2024-10-24</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
字符串 多行字符串 String str1 = """ 你好 dart """; print(str1); 字符串拼接 String str2 = "你好"; String str3 = "dart"; print("$str2 $str3"); 列表 指定类型创建 var l1=<String>["1","2"] var l2=<int>[1,2,3]; 移除 new List() 新版本不支持 new 创建列表 List.filled 创建固定长度列表 // 创建长度是 5,每个元素的值是
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/dart">dart
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/js%E5%87%BD%E6%95%B0/">js 函数</a></h1>
</header>
<div class="article-meta">
<a href="./posts/js%E5%87%BD%E6%95%B0/" class="article-date">
<time datetime='2024-07-09T07:25:41.000+00:00' itemprop="datePublished">2024-07-09</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
js 中的函数,既不关心参数个数,也不关心参数类型 函数的参数在内部表现为一个数组。函数被调用时总会接收一个数组,但函数并不关心这个数组中包含什么。如果数组中什么也没有,那没问题;如果数组的元素超出了要求,
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/js">js
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E4%BB%A3%E7%90%86/">js中代理</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E4%BB%A3%E7%90%86/" class="article-date">
<time datetime='2024-07-04T21:34:35.000+00:00' itemprop="datePublished">2024-07-04</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
代理原对象的 get 方法 捕获器不变式 可撤销代理 十三种捕获器 1. get() 2. set() 3. has 捕获器 4. defineProperty() 捕获器 5. getOwnPropertyDescriptor 6. deleteProperty() 7. ownKeys() 8. getPrototypeOf() 9. setPrototypeOf() 10. isExtensible() 11. preventExtensions() 12. apply() 13. construct() 常见代理使用场景 跟踪属性访问 隐藏属性 属性验证 构造函数参数验证 数据绑定 代理原对象的 get 方
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/js">js
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E4%BA%B2%E5%AF%86%E5%85%B3%E7%B3%BB/">亲密关系</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E4%BA%B2%E5%AF%86%E5%85%B3%E7%B3%BB/" class="article-date">
<time datetime='2024-03-17T18:07:51.000+00:00' itemprop="datePublished">2024-03-17</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
5. 沟通 在线沟通存在大量的人际隔阂 男女没有巨大的差异 自我表露 男依赖女获取温情 女性与两性伙伴都保持着亲密联系 男性一生中或许需要与女人交往来避免孤独,这方面女性通常不需要男性 工具性对表达性 大男子主义 常把男性
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0">读书笔记
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/%E6%8E%8C%E6%8E%A7%E4%B9%A0%E6%83%AF%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/">掌控习惯读书笔记</a></h1>
</header>
<div class="article-meta">
<a href="./posts/%E6%8E%8C%E6%8E%A7%E4%B9%A0%E6%83%AF%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/" class="article-date">
<time datetime='2024-03-17T17:10:48.000+00:00' itemprop="datePublished">2024-03-17</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
掌控习惯 中心思想 逃避坏习惯而不是克服坏习惯 发掘自身潜能比盲目努力有效 努力做好对自己容易的事情 习惯动作+刻意练习=精通 如何养成好习惯 让他显而易见 设计环境,让好习惯的提示清晰 把运动鞋放在显眼的位置, 把跳绳
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0">读书笔记
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/elasticsearch%E7%B3%BB%E5%88%97%E4%B9%8B%E8%83%8C%E6%99%AF%E5%92%8C%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86%E4%BB%8B%E7%BB%8D/">ElasticSearch 系列之背景和基本原理介绍</a></h1>
</header>
<div class="article-meta">
<a href="./posts/elasticsearch%E7%B3%BB%E5%88%97%E4%B9%8B%E8%83%8C%E6%99%AF%E5%92%8C%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86%E4%BB%8B%E7%BB%8D/" class="article-date">
<time datetime='2023-12-22T08:02:42.000+00:00' itemprop="datePublished">2023-12-22</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
1. ElasticSearch 简介 Elasticsearch 是用 Java 开发并且是当前最流行的开源的企业级搜索引擎。 能够达到实时搜索,稳定,可靠,快速,安装使用方便。 客户端支持 Java、.NET(C#)、PHP、Python、Ruby 等多种语言,可以通过 JSON
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/es">ES
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/shardingsphere%E5%88%86%E5%BA%93%E5%88%86%E8%A1%A8%E4%B8%8E%E8%AF%BB%E5%86%99%E5%88%86%E7%A6%BB%E5%AE%9E%E6%88%98/">ShardingSphere分库分表与读写分离实战</a></h1>
</header>
<div class="article-meta">
<a href="./posts/shardingsphere%E5%88%86%E5%BA%93%E5%88%86%E8%A1%A8%E4%B8%8E%E8%AF%BB%E5%86%99%E5%88%86%E7%A6%BB%E5%AE%9E%E6%88%98/" class="article-date">
<time datetime='2023-12-10T16:54:08.000+00:00' itemprop="datePublished">2023-12-10</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
关于 ShardingSphere 关于 ShardingSphere 功能 分库分表的作用 分库分表策略的选择 核心概念 分片策略介绍 准备工作 1. 数据库 2. 新建 SpringBoot 项目 3. 在项目中配置数据源 4. 项目目录结构 inline 1. 新建 course 表 2. 指定逻辑表与实际表的关系 3. 编写实体类 4. 测试插入 5. 测试全表
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/mysql">mysql
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/mysql%E9%AB%98%E5%8F%AF%E7%94%A8%E6%9E%B6%E6%9E%84/">MySQL 高可用架构</a></h1>
</header>
<div class="article-meta">
<a href="./posts/mysql%E9%AB%98%E5%8F%AF%E7%94%A8%E6%9E%B6%E6%9E%84/" class="article-date">
<time datetime='2023-11-23T21:47:30.000+00:00' itemprop="datePublished">2023-11-23</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
MySQL 是实际生产中最常用的数据库,生产环境数据量极为庞大,对性能和安全要求很高,单机的 MySQL 是远远达不到的,所以必须搭建一个主从复制架构,同时可以基于一些工具实现高可用架构,在此基础上,基于一些中间件实现读写
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/mysql">mysql
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/maven%E5%B8%B8%E7%94%A8%E7%9F%A5%E8%AF%86%E9%80%9F%E8%AE%B0/">maven 常用知识速记</a></h1>
</header>
<div class="article-meta">
<a href="./posts/maven%E5%B8%B8%E7%94%A8%E7%9F%A5%E8%AF%86%E9%80%9F%E8%AE%B0/" class="article-date">
<time datetime='2023-10-17T07:39:15.000+00:00' itemprop="datePublished">2023-10-17</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
依赖 创建项目 maven archetype:generate 依赖范围 有如下依赖示例: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <scope>test</scope> </dependency> 其中有一个scope标签来声明该依赖的作用范围 首先需要知道,Maven 在编译项目主代码的时候需要使用一套 classpath。在上例中,假如编译项目主
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/maven">maven
</a>
</li>
</ul>
</footer>
</div>
</article>
<article class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<h1 itemprop="name"><a class="article-title" href="./posts/nginx%E4%B8%ADlocation%E5%8C%B9%E9%85%8D%E8%A7%84%E5%88%99/">nginx中location匹配规则</a></h1>
</header>
<div class="article-meta">
<a href="./posts/nginx%E4%B8%ADlocation%E5%8C%B9%E9%85%8D%E8%A7%84%E5%88%99/" class="article-date">
<time datetime='2023-08-16T16:13:39.000+00:00' itemprop="datePublished">2023-08-16</time>
</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>
精确匹配 / ,主机名后面不能带任何字符串 location = / { add_header Content-Type text/plain; return 200 'A'; } 或 location = /login { add_header Content-Type text/plain; return 200 'B'; } 匹配任何以 /static/ 开头的地址,匹配以后,不再继续往下检索正则,立即采用这一条。 location ^~ /static/ { add_header Content-Type text/plain; return 200 'C'; } 匹配所有以 txt 结尾的请求
</p>
</div>
<footer class="article-footer">
<ul class="article-tag-list">
<li class="article-tag-list-item">
<a class="article-tag-list-link" href="https://dccmmtop.github.io/tags/nginx">nginx
</a>
</li>
</ul>
</footer>
</div>
</article>
<nav id="page-nav">
<span class="page-number current">1</span>
<a href="./page/2/">2</a>
<a href="./page/3/">3</a>
<a href="./page/4/">4</a>
<a href="./page/5/">5</a>
<a href="./page/6/">6</a>
<a href="./page/7/">7</a>
<a href="./page/8/">8</a>
<a href="./page/9/">9</a>
<a href="./page/10/">10</a>
<a href="./page/11/">11</a>
<a href="./page/12/">12</a>
<a href="./page/13/">13</a>
<a href="./page/14/">14</a>
<a href="./page/15/">15</a>
<a href="./page/16/">16</a>
<a href="./page/2/" rel="next" class="extend next"> »</a>
</nav>
</section>
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
© 2024 dc
<br />
Powered by <a href="https://gohugo.io" target="_blank">Hugo</a> with theme <a
href="https://github.com/carsonip/hugo-theme-minos" target="_blank">Minos</a>
</div>
</div>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/tomorrow-night.min.css"
integrity="sha256-2wL88NKUqvJi/ExflDzkzUumjUM73mcK2gBvBBeLvTk=" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"
integrity="sha256-KbfTjB0WZ8vvXngdpJGY3Yp3xKk+tttbqClO11anCIU=" crossorigin="anonymous"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
document.getElementById('main-nav-toggle').addEventListener('click', function () {
var header = document.getElementById('header');
if (header.classList.contains('mobile-on')) {
header.classList.remove('mobile-on');
} else {
header.classList.add('mobile-on');
}
});
</script>
<style>
#footer-info {
line-height: 1.4em;
font-size: 10px;
}
.custom-blog-info {
font-family: 'Long Cang', cursive;
border-top: 1px dashed #333;
font-size: 16px;
margin-top: 10px;
padding-top: 10px;
line-height: 1.4em;
}
</style>
</footer>
</div>
</body>
</html>