-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
877 lines (816 loc) · 78 KB
/
index.xml
File metadata and controls
877 lines (816 loc) · 78 KB
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
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>jASSSSSSON's Blog</title>
<link>https://jasssssson.github.io/</link>
<description>Recent content on jASSSSSSON's Blog</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<copyright>jASSSSSSON</copyright>
<lastBuildDate>Thu, 17 Sep 2020 13:18:00 +0800</lastBuildDate>
<atom:link href="https://jasssssson.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>MySql数据库</title>
<link>https://jasssssson.github.io/posts/tips/mysqltips/</link>
<pubDate>Thu, 17 Sep 2020 13:18:00 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/tips/mysqltips/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/tips/mysqltips/ -<h1 id="开始">开始</h1>
<hr>
<h2 id="1-字段长度条件搜索"><code>1.</code> 字段长度条件搜索</h2>
<h3 id="lengthchar_length的区别">length()、char_length()的区别。</h3>
<ol>
<li>length():mysql里面的length()函数是一个用来获取字符串长度的内置函数。</li>
<li>char_length():在mysql内置函数里面查看字符串长度的还有一个函数是char_length()。</li>
<li>这两个函数的区别是:
<ul>
<li>length(): 单位是字节,utf8编码下,一个汉字三个字节,一个数字或字母一个字节。gbk编码下,一个汉字两个字节,一个数字或字母一个字节。</li>
<li>char_length():单位为字符,不管汉字还是数字或者是字母都算是一个字符。</li>
</ul>
</li>
</ol>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-sql" data-lang="sql"> <span style="color:#66d9ef">SELECT</span>
<span style="color:#f92672">*</span>
<span style="color:#66d9ef">FROM</span>
baili_user
<span style="color:#66d9ef">WHERE</span>
<span style="color:#66d9ef">char_length</span>(name)<span style="color:#f92672">&gt;</span><span style="color:#ae81ff">3</span>
<span style="color:#f92672">#</span><span style="color:#960050;background-color:#1e0010">如果搜索的字符为中文,推荐使用</span><span style="color:#66d9ef">char_length</span>()
<span style="color:#f92672">#</span><span style="color:#960050;background-color:#1e0010">非中文使用</span><span style="color:#66d9ef">length</span>()
</code></pre></div><hr>
<h1 id="结束">结束</h1>
- https://jasssssson.github.io/posts/tips/mysqltips/ - jASSSSSSON</description>
</item>
<item>
<title>初步开始Python</title>
<link>https://jasssssson.github.io/posts/%E8%AF%AD%E8%A8%80/python1/</link>
<pubDate>Wed, 16 Sep 2020 17:38:00 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/%E8%AF%AD%E8%A8%80/python1/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E8%AF%AD%E8%A8%80/python1/ -<h2 id="背景信息">背景信息</h2>
<p>正式开始学习<code>Python</code>,下面是快速跳转入口,如有需要,请点击进行快速跳转<br>
<a href="#%E8%83%8C%E6%99%AF%E4%BF%A1%E6%81%AF">背景信息</a><br>
<a href="#%E7%8E%AF%E5%A2%83%E4%BB%8B%E7%BB%8D">环境介绍</a><br>
<a href="#%E8%AF%AD%E8%A8%80%E8%83%8C%E6%99%AF">语言背景</a><br>
<a href="#HelloWorld">HelloWorld</a><br>
<a href="#%E7%BB%93%E8%AF%AD">结语</a></p>
<hr>
<h2 id="环境介绍">环境介绍</h2>
<p>操作系统:Windows10<br>
Git: 2.28.0 x64<br>
Python:3.8.5</p>
<hr>
<h2 id="语言背景">语言背景</h2>
<p> Python是一种跨平台的计算机程序设计语言。 是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。最初被设计用于编写自动化脚本(shell),随着版本的不断更新和语言新功能的添加,越多被用于独立的、大型项目的开发。<br>
<a href="https://baike.baidu.com/item/Python/407313?fr=aladdin">百度百科</a><br>
<a href="https://www.python.org/">官网</a></p>
<hr>
<h2 id="helloworld">HelloWorld</h2>
<p> 使用<code>PyCharm</code>打开第一个<code>[.py]</code>文件</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-py" data-lang="py"><span style="color:#75715e">#!/usr/bin/python</span>
<span style="color:#75715e"># -*- coding: UTF-8 -*- 这是中文标识</span>
<span style="color:#66d9ef">print</span>(<span style="color:#e6db74">&#34;你好,世界&#34;</span>)
<span style="color:#66d9ef">print</span>(<span style="color:#e6db74">&#39;HelloWorld&#39;</span>)
</code></pre></div><p><img src="https://www.962v.com/images/2020/09/17/pythonHelloWorld.png" alt="HelloWorld"></p>
<hr>
<h2 id="结语">结语</h2>
<p> 感谢阅读我的博客,希望能给你带来帮助。<code>:)</code> <a href="https://github.com/jASSSSSSON">@jASSSSSSON</a></p>
- https://jasssssson.github.io/posts/%E8%AF%AD%E8%A8%80/python1/ - jASSSSSSON</description>
</item>
<item>
<title>简单配置Vue.js(Idea)</title>
<link>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/vuebuilding/</link>
<pubDate>Sat, 15 Aug 2020 17:46:30 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/vuebuilding/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/vuebuilding/ -<h2 id="背景信息">背景信息</h2>
<p> 使用Idea搭建项目,Spring Initializr生成项目结构,前端使用<code>Vue.js</code>框架,下面是快速跳转入口,如有需要,请点击进行快速跳转<br>
<a href="#%E8%83%8C%E6%99%AF%E4%BF%A1%E6%81%AF">背景信息</a><br>
<a href="#%E7%8E%AF%E5%A2%83%E4%BB%8B%E7%BB%8D">环境介绍</a><br>
<a href="#%E9%A1%B9%E7%9B%AE%E6%90%AD%E5%BB%BA">项目搭建</a><br>
<a href="#%E4%BB%A3%E7%A0%81">代码</a><br>
<a href="#%E7%BB%93%E8%AF%AD">结语</a></p>
<hr>
<h2 id="环境介绍">环境介绍</h2>
<p>操作系统:Windows10<br>
Idea:2020.1-x64<br>
Maven:3<br>
Vue:2.6.11</p>
<hr>
<h2 id="项目搭建">项目搭建</h2>
<ol>
<li>
<h3 id="打开idea新建springboot项目项目名为vuedemo">打开Idea,新建Springboot项目,项目名为VueDemo</h3>
<p><img src="https://www.962v.com/images/2020/08/15/VueDemo1.png" alt="VueDemo1"></p>
</li>
<li>
<h3 id="下载最新稳定版的vuejs">下载最新稳定版的Vue.js</h3>
<p><img src="https://www.962v.com/images/2020/08/15/VueDemo2.png" alt="VueDemo2"></p>
</li>
<li>
<h3 id="新建html文件使用vuejs语法操作数据">新建.html文件,使用Vue.js语法操作数据</h3>
<p> 将下载好的<code>Vue.js</code>放到<code>[resource]</code>目录下的<code>[static]</code>里,在<code>[templates]</code>文件夹下创建<code>vueIndex.html</code>文件,然后在<code>&lt;script src=&quot;&quot;&gt;&lt;/script&gt;</code>中将文件加载进来。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-html" data-lang="html"><span style="color:#75715e">&lt;!DOCTYPE html&gt;</span>
&lt;<span style="color:#f92672">html</span> <span style="color:#a6e22e">lang</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;zh&#34;</span>&gt;
&lt;<span style="color:#f92672">head</span>&gt;
&lt;<span style="color:#f92672">meta</span> <span style="color:#a6e22e">charset</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;UTF-8&#34;</span>&gt;
&lt;<span style="color:#f92672">title</span>&gt;Document&lt;/<span style="color:#f92672">title</span>&gt;
&lt;<span style="color:#f92672">script</span> <span style="color:#a6e22e">src</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;js/vue.js&#34;</span>&gt;&lt;/<span style="color:#f92672">script</span>&gt;
&lt;<span style="color:#f92672">script</span>&gt;
window.<span style="color:#a6e22e">onload</span> <span style="color:#f92672">=</span> <span style="color:#66d9ef">function</span>(){
<span style="color:#75715e">// vue.js的代码开始于一个Vue对象。所以每次操作数据都要声明Vue对象开始。
</span><span style="color:#75715e"></span> <span style="color:#66d9ef">var</span> <span style="color:#a6e22e">vm</span> <span style="color:#f92672">=</span> <span style="color:#66d9ef">new</span> <span style="color:#a6e22e">Vue</span>({
<span style="color:#a6e22e">el</span><span style="color:#f92672">:</span><span style="color:#e6db74">&#39;#app&#39;</span>, <span style="color:#75715e">// 设置当前vue对象要控制的标签范围。
</span><span style="color:#75715e"></span> <span style="color:#a6e22e">data</span><span style="color:#f92672">:</span>{ <span style="color:#75715e">// data是将要展示到HTML标签元素中的数据。
</span><span style="color:#75715e"></span> <span style="color:#a6e22e">message</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;hello world!&#39;</span>,
<span style="color:#a6e22e">htmlText</span><span style="color:#f92672">:</span> <span style="color:#e6db74">&#39;&lt;a href=&#34;www.baidu.com&#34;&gt;baidu&lt;/a&gt;&#39;</span>,
}
});
}
&lt;/<span style="color:#f92672">script</span>&gt;
&lt;/<span style="color:#f92672">head</span>&gt;
&lt;<span style="color:#f92672">body</span>&gt;
&lt;<span style="color:#f92672">div</span> <span style="color:#a6e22e">id</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;app&#34;</span>&gt;
<span style="color:#75715e">&lt;!-- {{ message }} 表示把vue对象里面data属性中的对应数据输出到页面中 --&gt;</span>
<span style="color:#75715e">&lt;!-- 在双标签中显示数据要通过{{ }}来完成 --&gt;</span>
&lt;<span style="color:#f92672">p</span>&gt;{{ message }}&lt;/<span style="color:#f92672">p</span>&gt;
<span style="color:#75715e">&lt;!-- js还有一种运算符,三元运算符,类似于python里面的三元表达式 --&gt;</span>
&lt;<span style="color:#f92672">p</span>&gt;num是一个{{num%2==0?&#39;偶数&#39;:&#39;奇数&#39;}}&lt;/<span style="color:#f92672">p</span>&gt;
<span style="color:#75715e">&lt;!-- 如果要输出data里面的数据作为表单元素的值,需要使用vue.js提供的元素属性v-model--&gt;</span>
&lt;<span style="color:#f92672">input</span> <span style="color:#a6e22e">v-model</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;message&#34;</span> /&gt;
<span style="color:#75715e">&lt;!-- 显示html数据要通过v-html属性来完成 --&gt;</span>
&lt;<span style="color:#f92672">p</span> <span style="color:#a6e22e">v-html</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;htmlText&#34;</span>&gt;&lt;/<span style="color:#f92672">p</span>&gt;
&lt;/<span style="color:#f92672">div</span>&gt;
&lt;/<span style="color:#f92672">body</span>&gt;
&lt;/<span style="color:#f92672">html</span>&gt;
</code></pre></div></li>
<li>
<h3 id="配置applicationproperties">配置application.properties</h3>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yml" data-lang="yml"><span style="color:#75715e">#html解析器,需添加</span>
<span style="color:#75715e">#&lt;dependency&gt;</span>
<span style="color:#75715e"># &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;</span>
<span style="color:#75715e"># &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;</span>
<span style="color:#75715e"># &lt;/dependency&gt;</span>
<span style="color:#75715e">#依赖</span>
spring.thymeleaf.prefix=classpath:/templates/
<span style="color:#75715e">#db</span>
<span style="color:#75715e">#应用名称</span>
spring.application.name=springboot-demo
<span style="color:#75715e">#访问端口号</span>
server.port=<span style="color:#ae81ff">8080</span>
<span style="color:#75715e">#编码格式</span>
server.tomcat.uri-encoding=utf<span style="color:#ae81ff">-8</span>
<span style="color:#75715e">#数据库相关配置</span>
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:<span style="color:#ae81ff">3306</span>/SpringBootDemo?serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=<span style="color:#ae81ff">123456</span>
spring.datasource.max-idle=<span style="color:#ae81ff">10</span>
spring.datasource.max-wait=<span style="color:#ae81ff">10000</span>
spring.datasource.min-idle=<span style="color:#ae81ff">5</span>
spring.datasource.initial-size=<span style="color:#ae81ff">5</span>
<span style="color:#75715e">#session生命周期</span>
server.servlet.session.timeout=30m
<span style="color:#75715e"># Hikari 数据源专用配置</span>
spring.datasource.hikari.maximum-pool-size=<span style="color:#ae81ff">20</span>
spring.datasource.hikari.minimum-idle=<span style="color:#ae81ff">5</span>
<span style="color:#75715e"># JPA 相关配置</span>
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.show-sql=<span style="color:#66d9ef">true</span>
spring.jpa.hibernate.ddl-auto=update
<span style="color:#75715e">#Mybatis</span>
mybatis.type-aliases-package=com.mapper
</code></pre></div></li>
<li>
<h3 id="运行">运行</h3>
<p><img src="https://www.962v.com/images/2020/08/15/VueDemo3.png" alt="VueDemo3"><br>
恭喜!<code>:)</code></p>
</li>
</ol>
<hr>
<h2 id="代码">代码</h2>
<p> <a href="https://github.com/jASSSSSSON/VueDemo">请点击传送门前往Github项目&mdash;&gt;</a></p>
<hr>
<h2 id="结语">结语</h2>
<p> 感谢阅读我的博客,希望能给你带来帮助。<code>:)</code> <a href="https://github.com/jASSSSSSON">@jASSSSSSON</a></p>
- https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/vuebuilding/ - jASSSSSSON</description>
</item>
<item>
<title>搭建GithubPage博客(Hugo)</title>
<link>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/blogbuilding/</link>
<pubDate>Tue, 11 Aug 2020 18:07:00 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/blogbuilding/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/blogbuilding/ -<h2 id="背景信息">背景信息</h2>
<p> 使用Hugo初始化静态页面,<a href="https://github.com/amazingrise/hugo-theme-diary">Diary</a>主题模板,这款主题带有<a href="#gitalk">Gitalk</a>功能模块,统一在<code>cofig.toml</code>内配置参数即可,下面是快速跳转入口,如有需要,请点击进行快速跳转<br>
<a href="#%E8%83%8C%E6%99%AF%E4%BF%A1%E6%81%AF">背景信息</a><br>
<a href="#%E7%8E%AF%E5%A2%83%E4%BB%8B%E7%BB%8D">环境介绍</a><br>
<a href="#%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a><br>
<a href="#%E7%BB%86%E8%8A%82">细节</a><br>
<a href="#%E4%BB%A3%E7%A0%81">代码</a><br>
<a href="#%E7%BB%93%E8%AF%AD">结语</a></p>
<hr>
<h2 id="环境介绍">环境介绍</h2>
<p>操作系统:Windows10<br>
Git: 2.28.0 x64<br>
静态博客生成工具:Hugo-0.74.3<br>
主题:Diary-1.2.0</p>
<hr>
<h2 id="博客搭建">博客搭建</h2>
<ol>
<li>
<h3 id="注册">注册</h3>
<p> 首先,既然是利用GithubPage,所以需要一个Github账户,如果没有,请先注册一个,点击下方传送门可以直接跳转,已经注册过就可以跳过这步了。<br>
需要注意的是,第一次打开页面,这就是注册,按要求输入信息即可,<code>Username</code>不可重复,后续是URL中的标识,重名了就改一个吧!<code>:)</code><br>
<a href="https://github.com/">Github.com</a>
<img src="https://www.962v.com/images/2020/08/11/github_com.png" alt="Github.com"></p>
</li>
<li>
<h3 id="下载">下载</h3>
<p> 账号准备就绪了后,就需要下载Git客户端以及Hugo了,附上传送门。<br>
<code>注意</code> : 选择自己的版本和对应<code>x86</code>/<code>x64</code>版本(<code>x86</code>是32位/bit,<code>x64</code>是64位/bit),不要下载其他操作系统的文件!<br>
<a href="https://git-scm.com/download/">Git</a>
<img src="https://www.962v.com/images/2020/08/11/gitDown.png" alt="GitDown"></p>
<p><a href="https://git-scm.com/download/win">Git(win)</a><br>
<img src="https://www.962v.com/images/2020/08/11/gitWin.png" alt="GitWin"></p>
<p><a href="https://github.com/gohugoio/hugo/releases">Hugo</a>(版本很多,windows的在下方)
<img src="https://www.962v.com/images/2020/08/11/hugoRelease.png" alt="hugoRelease"></p>
</li>
<li>
<h3 id="安装配置">安装配置</h3>
<ul>
<li>Git<br>
全部都下载好后,进行安装与配置,这里转载一下其他博主的文章,大家看看,只需要配置<code>Git</code>能够使用即可。
转载:<a href="https://blog.csdn.net/huangqqdy/article/details/83032408">Git下载、安装与环境配置</a></li>
<li>Hugo
<ul>
<li>将下载的文件解压,得到<code>hugo.exe</code>文件,然后如上一篇博文一样,将文件放到自己想要的位置后,添加环境变量<code>path</code>为文件所在目录即可(如D://software)。<br>
验证Hugo是否安装成功:<code>[hugo version]</code></li>
<li>接下来新建一个文件夹,用来装静态网页,使用<code>[hugo new site 自定义站点名称]</code>,需要在文件夹内使用<code>CMD</code>命令,可以在文件夹地址栏输入<code>[cmd]</code>打开<code>CMD</code>再使用新建命令。</li>
<li>新建完成后,应该会产生如下图所示结构
<pre><code>├─archetypes
├─content
├─data
├─layouts
├─static
├─themes
└─config.toml
</code></pre><p>这个时候就需要挑选一款自己喜欢的主题了,传送门 : <a href="https://themes.gohugo.io/">Hugo主题</a><br>
挑选主题多注意主题作者的文档,里面记录了如何配置主题参数。</p>
</li>
<li>将主题下载到本地后,移动到站点下的<code>themes</code>文件夹,并将里面的<code>config.toml</code>移动出来覆盖外面的配置文件,接下来,在站点文件夹下使用<code>CMD</code>命令<code>hugo server</code>开启本地测试,调试参数,直到满意,访问地址为<a href="http://localhost:1313"><code>http://localhost:1313</code></a>(注意主题文档,有一部分需要配置<code>config.toml</code>文件才能正常使用)</li>
<li>如果测试无误,进入下一个环节。</li>
</ul>
</li>
</ul>
</li>
<li>
<h3 id="部署准备">部署准备</h3>
<p> 进入<code>Github</code>主页,新建一个仓库,仓库名为:<code>[你的用户名].github.io</code>(以下简称<code>Page仓库</code>),使用自动初始化,然后打开你的本地<code>Git</code>仓库,使用命令将<code>Page仓库</code> <code>[clone]</code>下来。<br>
如需配置<code>Gitalk</code>请看:进入用户设置,左边最后一栏<code>Developer settings</code> - <code>oAuth Apps</code>,右侧点击<code>New oAuth</code><br>
<img src="https://www.962v.com/images/2020/08/11/oAuthegister.png" alt="oAuth"></p>
<p>记录下<code>[Client ID]</code>和<code>[Client Secret]</code>
<img src="https://www.962v.com/images/2020/08/11/jota.png" alt="AppInfo"></p>
<p>回到你的<code>静态网页站点</code>,将<code>config.toml</code>中的<code>[baseURL]</code>地址改为<code>[https://Page仓库名]</code>,按照文档进行额外修改,最后使用<code>[hugo]</code>命令生成根目录下<code>public文件夹</code>,准备完成。</p>
</li>
<li>
<h3 id="部署">部署</h3>
<p>将本地的<code>Page仓库</code>内的文件复制到<code>public文件夹</code>内,在内部使用<code>Git</code>命令将文件夹上传,顺序如下 :</p>
<ul>
<li><code>[git add -A]</code></li>
<li><code>[git commit -m &quot;上传说明&quot;]</code></li>
<li><code>[git push - u origin master]</code></li>
</ul>
<p>也许会要求输入账号密码,按照要求输入即可(密码看不见,保护隐私)。<br>
上传完成后,访问<code>[baseURL]</code>地址,你的博客准备好了,以后每次都使用<code>[hugo]</code>修改<code>public文件夹</code>,再上传即可。</p>
</li>
</ol>
<hr>
<h2 id="细节">细节</h2>
<ol>
<li>
<h3 id="gitalk"><code>Gitalk</code></h3>
这次我还配置了<code>Gitalk</code>,遇到的问题详见<a href="https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/githubblog">搭建博客中遇到的问题(Gitalk)</a>。值得一提的就是根据不同的主题,如果想要开启评论,需要在<code>config.toml</code>中设置组件启用,在文章的元数据内开启评论。</li>
</ol>
<hr>
<h2 id="代码">代码</h2>
<ol>
<li><code>config.toml</code>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-toml" data-lang="toml"><span style="color:#a6e22e">baseURL</span> = <span style="color:#e6db74">&#34;https://xxx.github.io&#34;</span>
<span style="color:#a6e22e">DefaultContentLanguage</span> = <span style="color:#e6db74">&#34;zh&#34;</span> <span style="color:#75715e"># Theme&#39;s display language, supports: en, fr, zh, zh-hant</span>
<span style="color:#a6e22e">languageCode</span> = <span style="color:#e6db74">&#34;en-us&#34;</span>
<span style="color:#a6e22e">title</span> = <span style="color:#e6db74">&#34;xxx&#39;s Blog&#34;</span>
<span style="color:#a6e22e">copyright</span> = <span style="color:#e6db74">&#34;xxx&#34;</span>
<span style="color:#a6e22e">theme</span> = <span style="color:#e6db74">&#34;diary&#34;</span>
[<span style="color:#a6e22e">markup</span>]
[<span style="color:#a6e22e">markup</span>.<span style="color:#a6e22e">highlight</span>]
<span style="color:#a6e22e">codeFences</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">guessSyntax</span> = <span style="color:#66d9ef">false</span>
<span style="color:#a6e22e">hl_Lines</span> = <span style="color:#e6db74">&#34;&#34;</span>
<span style="color:#a6e22e">lineNoStart</span> = <span style="color:#ae81ff">1</span>
<span style="color:#a6e22e">lineNos</span> = <span style="color:#66d9ef">false</span>
<span style="color:#a6e22e">lineNumbersInTable</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">noClasses</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">style</span> = <span style="color:#e6db74">&#34;monokai&#34;</span>
<span style="color:#a6e22e">tabWidth</span> = <span style="color:#ae81ff">4</span>
[<span style="color:#a6e22e">params</span>]
<span style="color:#a6e22e">subtitle</span> = <span style="color:#e6db74">&#34;a subtitle&#34;</span>
<span style="color:#a6e22e">enableGitalk</span> = <span style="color:#66d9ef">true</span> <span style="color:#75715e"># 开启Gitalk</span>
<span style="color:#a6e22e">favicon</span> = <span style="color:#e6db74">&#34;/images/icon.ico&#34;</span> <span style="color:#75715e"># 显示在浏览器标签栏上的小图标,由于格式特殊,文件过小,所以就没有使用图床</span>
<span style="color:#75715e"># Twitter Card and Open Graph settings</span>
<span style="color:#a6e22e">enableOpenGraph</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">enableTwitterCards</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">title</span> = <span style="color:#e6db74">&#34;My Blog&#34;</span> <span style="color:#75715e"># will set &#39;og:site_name&#39;</span>
<span style="color:#a6e22e">description</span> = <span style="color:#e6db74">&#34;My HomePage Description&#34;</span> <span style="color:#75715e"># will set &#39;og:description&#39;</span>
[<span style="color:#a6e22e">params</span>.<span style="color:#a6e22e">gitalk</span>]
<span style="color:#a6e22e">owner</span> = <span style="color:#e6db74">&#34;你的GitName&#34;</span>
<span style="color:#a6e22e">repo</span> = <span style="color:#e6db74">&#34;你的仓库名称&#34;</span> <span style="color:#75715e"># 如Gitalk</span>
<span style="color:#a6e22e">client_id</span> = <span style="color:#e6db74">&#34;&#34;</span> <span style="color:#75715e"># 填入记录的Client ID</span>
<span style="color:#a6e22e">client_secret</span> = <span style="color:#e6db74">&#34;&#34;</span> <span style="color:#75715e"># 填入记录的Client Secret</span>
[<span style="color:#a6e22e">taxonomies</span>]
<span style="color:#a6e22e">tag</span> = <span style="color:#e6db74">&#34;tags&#34;</span>
<span style="color:#a6e22e">category</span> = <span style="color:#e6db74">&#34;categories&#34;</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/categories&#34;</span> <span style="color:#75715e"># 侧边栏映射</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;categories&#34;</span> <span style="color:#75715e"># 侧边栏名称(我的繁体字是输入就是繁体不是上面的DefaultContentLanguage)</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">2</span> <span style="color:#75715e"># 优先级,越小越靠上</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/tags&#34;</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;tags&#34;</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">3</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/posts&#34;</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;posts&#34;</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">1</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/index.xml&#34;</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;RSS Feed&#34;</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">4</span>
</code></pre></div></li>
<li><code>.md</code>
<pre><code class="language-properties" data-lang="properties">title: &quot;文章大标题&quot;
date: 2020-08-11T14:15:30+08:00
description: &quot;副标题&quot;
#标签,会自动出现在Tags菜单内,但不会自动删除,需要使用Hugo重新生成public时才会去除
tags: [配置, github,blog]
featured_image: &quot;图片地址&quot;
#分类
categories: 配置
#开启评论
comment : ture
</code></pre></li>
</ol>
<hr>
<h2 id="结语">结语</h2>
<p> 感谢阅读我的博客,希望能给你带来帮助。<code>:)</code> <a href="https://github.com/jASSSSSSON">@jASSSSSSON</a></p>
- https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/blogbuilding/ - jASSSSSSON</description>
</item>
<item>
<title>搭建博客中遇到的问题(Gitalk)</title>
<link>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/githubblog/</link>
<pubDate>Tue, 11 Aug 2020 14:15:30 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/githubblog/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/githubblog/ -<h2 id="问题描述">问题描述</h2>
<p> 在使用Hugo初始化静态页面时,使用了<a href="https://github.com/amazingrise/hugo-theme-diary">Diary</a>主题,这款主题带有Gitalk功能模块,需要在<code>cofig.toml</code>内配置参数即可,一开始一切顺利,直到配置评论(Gitalk)时,出现了问题,一开始是网络连接错误<a href="#error-network-error"><code>[Error: Network Error]</code></a> (问题解决方案可点击跳到相应部分),后来又出现 <a href="#error-not-found"><code>[Error: Not Found]</code></a> 是本次问题关注点,如需跳转,请点击下方快速跳转<br>
<a href="#%E9%97%AE%E9%A2%98%E6%8F%8F%E8%BF%B0">问题描述</a><br>
<a href="#%E7%8E%AF%E5%A2%83%E4%BB%8B%E7%BB%8D">环境介绍</a><br>
<a href="#%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a><br>
<a href="#%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88">解决方案</a><br>
<a href="#%E4%BB%A3%E7%A0%81">代码</a><br>
<a href="#%E7%BB%93%E8%AF%AD">结语</a></p>
<hr>
<h2 id="环境介绍">环境介绍</h2>
<p>操作系统:Windows10<br>
Git: 2.28.0 x64<br>
静态博客生成工具:Hugo-0.74.3</p>
<hr>
<h2 id="博客搭建">博客搭建</h2>
<p> 详见我的另一篇文章<a href="https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/blogbuilding/">搭建GithubPage博客(Hugo)</a></p>
<hr>
<h2 id="解决方案">解决方案</h2>
<ol>
<li>
<h3 id="error-network-error"><code>Error: Network Error</code></h3>
<p> 首先,提示词已经非常清晰了,所以请检查配置文件<code>config,toml</code>内的<code>[baseURL]</code>设置是否与博客主页地址相同(URL大小写不敏感,但还是推荐统一使用小写),另外,在我的测试过程中,Chrome与Edge(非Chrome内核版)加载Gitalk组件出现两种情况,Edge一切正常,Chrome提示<code>[Error: Network Error]</code>,所以建议出现此问题时,尝试切换不同内核浏览器浏览,并使用<code>CTRL+F5</code>强制刷新,避免缓存影响测试。<br>
<img src="https://www.962v.com/images/2020/08/11/baseURL1.png" alt="baseURL"></p>
<p><code>注意</code> : 如果是用GitPage的博客地址,<code>[https://XXX.github.io]</code>后什么都不要加,还有<code>属性</code>要用<code>&quot;&quot;</code>包裹,我改的时候有一次就把前面的<code>&quot;</code>给删掉了。<code>:(</code></p>
</li>
<li>
<h3 id="error-not-found"><code>Error: Not Found</code></h3>
<p> 这个提示词的意思是存放Gitalk评论内容的仓库配置有误,这个就需要到自己配置仓库的地方改了,我使用的是主题集成的方式,所以只需要到主题的配置文件<code>config.toml</code>内配置即可,如果是自己添加的Gitalk组件需要到你自己的配置文件处修改,内容为repo=&quot;<code>[你的仓库名称]</code>&rdquo;(如repo=&quot;Gitalk&quot;就行,不用加地址)<br>
<img src="https://www.962v.com/images/2020/08/11/GitalkParams.png" alt="GitalkParams"></p>
<p>我在配置这个的时候,看过网上其他博客分享的文章,结合主题文档,自己配置了一下,一开始出现了<code>[Error: Network Error]</code>,但很快就解决了,接下来这个<code>[Error: Not Found]</code>可是把我折腾的够呛,主要是他们很多的实例中都会打马赛克,而文字说明又比较模糊,比如:<code>[repo]=&quot;填写自己的仓库&quot;</code>,我每次都是填写了仓库的全地址。(因为Gitalk是将评论记录到issue中,所以我一开始使用的就是博客的仓库)<br>
<img src="https://www.962v.com/images/2020/08/11/gitalk.png" alt="GitalkRrepositories"></p>
<p>但一直不行,错误提示也一直没变,后来我又看了几篇帖子说是直接使用博客地址的,我又使用了本博客的地址<a href="https://jasssssson.github.io">https://jasssssson.github.io</a>。一开始加上了<code>[.git]</code>尾缀,测试不行(那个时候,我还不知道浏览器差别,所以一会是<code>[Error: Network Error]</code>,后面改好后测试有些时候切换了浏览器,一会又是<code>[Error: Not Found]</code>,搞得我不知道到底是baseURL还是repo的问题了),后来又看到了去掉<code>[.git]</code>的文章,又测试了好久,也毫无进展,直到我看到一篇很老的文章,他没有打码,感觉恍然大悟,立马修改,测试通过。<code>:)</code></p>
</li>
</ol>
<hr>
<h2 id="代码">代码</h2>
<ol>
<li><code>config.toml</code>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-toml" data-lang="toml"><span style="color:#a6e22e">baseURL</span> = <span style="color:#e6db74">&#34;https://xxx.github.io&#34;</span>
<span style="color:#a6e22e">DefaultContentLanguage</span> = <span style="color:#e6db74">&#34;zh&#34;</span> <span style="color:#75715e"># Theme&#39;s display language, supports: en, fr, zh, zh-hant</span>
<span style="color:#a6e22e">languageCode</span> = <span style="color:#e6db74">&#34;en-us&#34;</span>
<span style="color:#a6e22e">title</span> = <span style="color:#e6db74">&#34;xxx&#39;s Blog&#34;</span>
<span style="color:#a6e22e">copyright</span> = <span style="color:#e6db74">&#34;xxx&#34;</span>
<span style="color:#a6e22e">theme</span> = <span style="color:#e6db74">&#34;diary&#34;</span>
[<span style="color:#a6e22e">markup</span>]
[<span style="color:#a6e22e">markup</span>.<span style="color:#a6e22e">highlight</span>]
<span style="color:#a6e22e">codeFences</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">guessSyntax</span> = <span style="color:#66d9ef">false</span>
<span style="color:#a6e22e">hl_Lines</span> = <span style="color:#e6db74">&#34;&#34;</span>
<span style="color:#a6e22e">lineNoStart</span> = <span style="color:#ae81ff">1</span>
<span style="color:#a6e22e">lineNos</span> = <span style="color:#66d9ef">false</span>
<span style="color:#a6e22e">lineNumbersInTable</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">noClasses</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">style</span> = <span style="color:#e6db74">&#34;monokai&#34;</span>
<span style="color:#a6e22e">tabWidth</span> = <span style="color:#ae81ff">4</span>
[<span style="color:#a6e22e">params</span>]
<span style="color:#a6e22e">subtitle</span> = <span style="color:#e6db74">&#34;a subtitle&#34;</span>
<span style="color:#a6e22e">enableGitalk</span> = <span style="color:#66d9ef">true</span> <span style="color:#75715e"># 开启Gitalk</span>
<span style="color:#a6e22e">favicon</span> = <span style="color:#e6db74">&#34;/images/icon.ico&#34;</span> <span style="color:#75715e"># 显示在浏览器标签栏上的小图标,由于格式特殊,文件过小,所以就没有使用图床</span>
<span style="color:#75715e"># Twitter Card and Open Graph settings</span>
<span style="color:#a6e22e">enableOpenGraph</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">enableTwitterCards</span> = <span style="color:#66d9ef">true</span>
<span style="color:#a6e22e">title</span> = <span style="color:#e6db74">&#34;My Blog&#34;</span> <span style="color:#75715e"># will set &#39;og:site_name&#39;</span>
<span style="color:#a6e22e">description</span> = <span style="color:#e6db74">&#34;My HomePage Description&#34;</span> <span style="color:#75715e"># will set &#39;og:description&#39;</span>
[<span style="color:#a6e22e">params</span>.<span style="color:#a6e22e">gitalk</span>]
<span style="color:#a6e22e">owner</span> = <span style="color:#e6db74">&#34;你的GitName&#34;</span>
<span style="color:#a6e22e">repo</span> = <span style="color:#e6db74">&#34;你的仓库名称&#34;</span> <span style="color:#75715e"># 如Gitalk</span>
<span style="color:#a6e22e">client_id</span> = <span style="color:#e6db74">&#34;&#34;</span> <span style="color:#75715e"># 详情请见搭建GithubPage博客(Hugo)</span>
<span style="color:#a6e22e">client_secret</span> = <span style="color:#e6db74">&#34;&#34;</span> <span style="color:#75715e"># 详情请见搭建GithubPage博客(Hugo)</span>
[<span style="color:#a6e22e">taxonomies</span>]
<span style="color:#a6e22e">tag</span> = <span style="color:#e6db74">&#34;tags&#34;</span>
<span style="color:#a6e22e">category</span> = <span style="color:#e6db74">&#34;categories&#34;</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/categories&#34;</span> <span style="color:#75715e"># 侧边栏映射</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;categories&#34;</span> <span style="color:#75715e"># 侧边栏名称(我的繁体字是输入就是繁体不是上面的DefaultContentLanguage)</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">2</span> <span style="color:#75715e"># 优先级,越小越靠上</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/tags&#34;</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;tags&#34;</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">3</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/posts&#34;</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;posts&#34;</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">1</span>
[[<span style="color:#a6e22e">menu</span>.<span style="color:#a6e22e">main</span>]]
<span style="color:#a6e22e">url</span> = <span style="color:#e6db74">&#34;/index.xml&#34;</span>
<span style="color:#a6e22e">name</span> = <span style="color:#e6db74">&#34;RSS Feed&#34;</span>
<span style="color:#a6e22e">weight</span> = <span style="color:#ae81ff">4</span>
</code></pre></div></li>
<li><code>.md</code>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yml" data-lang="yml"><span style="color:#66d9ef">title</span>: <span style="color:#e6db74">&#34;文章大标题&#34;</span>
<span style="color:#66d9ef">date</span>: <span style="color:#e6db74">2020-08-11T14:15:30</span><span style="color:#ae81ff">+08</span>:<span style="color:#ae81ff">00</span>
<span style="color:#66d9ef">description</span>: <span style="color:#e6db74">&#34;副标题&#34;</span>
<span style="color:#75715e">#标签,会自动出现在Tags菜单内,但不会自动删除,需要使用Hugo重新生成public时才会去除</span>
<span style="color:#66d9ef">tags</span>: [配置, github,blog]
<span style="color:#66d9ef">featured_image</span>: <span style="color:#e6db74">&#34;图片地址&#34;</span>
<span style="color:#75715e">#分类</span>
<span style="color:#66d9ef">categories</span>: 配置
<span style="color:#75715e">#开启评论</span>
<span style="color:#66d9ef">comment </span>: ture
</code></pre></div></li>
</ol>
<hr>
<h2 id="结语">结语</h2>
<p> 感谢阅读我的博客,希望能给你带来帮助。<code>:)</code> <a href="https://github.com/jASSSSSSON">@jASSSSSSON</a></p>
- https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/githubblog/ - jASSSSSSON</description>
</item>
<item>
<title>藏句阁</title>
<link>https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/string/</link>
<pubDate>Mon, 10 Aug 2020 13:25:05 -0400</pubDate>
<guid>https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/string/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/string/ -<h2 id="三更灯火五更鸡正是男儿读书时黑发不知勤学早白首方悔读书迟">三更灯火五更鸡,正是男儿读书时。黑发不知勤学早,白首方悔读书迟。</h2>
<p>—— 颜真卿</p>
<hr>
<h2 id="发现者尤其是一个初出茅庐的年轻发现者需要勇气才能无视他人的冷漠和怀疑才能坚信自己发现的意义并把研究继续下去">发现者,尤其是一个初出茅庐的年轻发现者,需要勇气才能无视他人的冷漠和怀疑,才能坚信自己发现的意义,并把研究继续下去。</h2>
<p>—— 贝弗里奇</p>
<hr>
<h2 id="沉浸于现实的忙碌之中没有时间和精力思念过去成功也就不会太远了">沉浸于现实的忙碌之中,没有时间和精力思念过去,成功也就不会太远了。</h2>
<p>—— 雷音</p>
<hr>
<h2 id="学习知识要善于思考思考再思我就是靠这个方法成为科学家的">学习知识要善于思考,思考,再思。我就是靠这个方法成为科学家的。</h2>
<p>—— 爱因斯坦</p>
<hr>
<h2 id="heading"></h2>
- https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/string/ - jASSSSSSON</description>
</item>
<item>
<title>三字经</title>
<link>https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/threecharacterclassic/</link>
<pubDate>Mon, 10 Aug 2020 11:25:05 -0400</pubDate>
<guid>https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/threecharacterclassic/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/threecharacterclassic/ -<h2 id="人之初性本善性相近习相远">人之初,性本善。性相近,习相远。</h2>
<p>苟不教,性乃迁。教之道,贵以专。<br>
昔孟母,择邻处。子不学,断机杼。<br>
窦燕山,有义方。教五子,名俱扬。<br>
养不教,父之过。教不严,师之惰。<br>
子不学,非所宜。幼不学,老何为。<br>
玉不琢,不成器。人不学,不知义。<br>
为人子,方少时。亲师友,习礼仪。<br>
香九龄,能温席。孝于亲,所当执。<br>
融四岁,能让梨。弟于长,宜先知。<br>
首孝悌,次见闻。知某数,识某文。<br>
一而十,十而百。百而千,千而万。<br>
三才者,天地人。三光者,日月星。<br>
三纲者,君臣义。父子亲,夫妇顺。<br>
曰春夏,曰秋冬。此四时,运不穷。<br>
曰南北,曰西东。此四方,应乎中。<br>
曰水火,木金土。此五行,本乎数。<br>
十干者,甲至癸。十二支,子至亥。<br>
曰黄道,日所躔。曰赤道,当中权。<br>
赤道下,温暖极。我中华,在东北。<br>
曰江河,曰淮济。此四渎,水之纪。<br>
曰岱华,嵩恒衡。此五岳,山之名。<br>
曰士农,曰工商。此四民,国之良。<br>
曰仁义,礼智信。此五常,不容紊。<br>
地所生,有草木。此植物,遍水陆。<br>
有虫鱼,有鸟兽。此动物,能飞走。<br>
稻粱菽,麦黍稷。此六谷,人所食。<br>
马牛羊,鸡犬豕。此六畜,人所饲。<br>
曰喜怒,曰哀惧。爱恶欲,七情具。<br>
青赤黄,及黑白。此五色,目所识。<br>
酸苦甘,及辛咸。此五味,口所含。<br>
膻焦香,及腥朽。此五臭,鼻所嗅。<br>
匏土革,木石金。丝与竹,乃八音。<br>
曰平上,曰去入。此四声,宜调协。<br>
高曾祖,父而身。身而子,子而孙。<br>
自子孙,至玄曾。乃九族,人之伦。<br>
父子恩,夫妇从。兄则友,弟则恭。<br>
长幼序,友与朋。君则敬,臣则忠。<br>
此十义,人所同。当师叙,勿违背。<br>
斩齐衰,大小功。至缌麻,五服终。<br>
礼乐射,御书数。古六艺,今不具。<br>
惟书学,人共遵。既识字,讲说文。<br>
有古文,大小篆。隶草继,不可乱。<br>
若广学,惧其繁。但略说,能知原。<br>
凡训蒙,须讲究。详训诂,明句读。<br>
为学者,必有初。小学终,至四书。<br>
论语者,二十篇。群弟子,记善言。<br>
孟子者,七篇止。讲道德,说仁义。<br>
作中庸,子思笔。中不偏,庸不易。<br>
作大学,乃曾子。自修齐,至平治。<br>
孝经通,四书熟。如六经,始可读。<br>
诗书易,礼春秋。号六经,当讲求。 <br>
有连山,有归藏。有周易,三易详。<br>
有典谟,有训诰。有誓命,书之奥。<br>
我周公,作周礼。著六官,存治体。<br>
大小戴,注礼记。述圣言,礼乐备。<br>
曰国风,曰雅颂。号四诗,当讽咏。<br>
诗既亡,春秋作。寓褒贬,别善恶。<br>
三传者,有公羊。有左氏,有谷梁。<br>
经既明,方读子。撮其要,记其事。<br>
五子者,有荀扬。文中子,及老庄。<br>
经子通,读诸史。考世系,知终始。<br>
自羲农,至黄帝。号三皇,居上世。<br>
唐有虞,号二帝。相揖逊,称盛世。<br>
夏有禹,商有汤。周文王,称三王。<br>
夏传子,家天下。四百载,迁夏社。<br>
汤伐夏,国号商。六百载,至纣亡。<br>
周文王,始诛纣。八百载,最长久。<br>
周辙东,王纲坠。逞干戈,尚游说。<br>
始春秋,终战国。五霸强,七雄出。<br>
嬴秦氏,始兼并。传二世,楚汉争。 <br>
高祖兴,汉业建。至孝平,王莽篡。<br>
光武兴,为东汉。四百年,终于献。<br>
魏蜀吴,争汉鼎。号三国,迄两晋。<br>
宋齐继,梁陈承。为南朝,都金陵。<br>
北元魏,分东西。宇文周,与高齐。<br>
迨至隋,一土宇。不再传,失统绪。<br>
唐高祖,起义师。除隋乱,创国基。<br>
二十传,三百载。梁灭之,国乃改。<br>
梁唐晋,及汉周。称五代,皆有由。<br>
炎宋兴,受周禅。十八传,南北混。<br>
辽与金,皆称帝。元灭金,绝宋世。<br>
舆图广,超前代。九十年,国祚废。<br>
太祖兴,国大明。号洪武,都金陵。<br>
迨成祖,迁燕京。十六世,至崇祯。<br>
权阉肆,寇如林。李闯出,神器焚。<br>
清世祖,膺景命。靖四方,克大定。<br>
由康雍,历乾嘉。民安富,治绩夸。<br>
道咸间,变乱起。始英法,扰都鄙。<br>
同光后,宣统弱。传九帝,满清殁。 <br>
革命兴,废帝制。立宪法,建民国。<br>
古今史,全在兹。载治乱,知兴衰。<br>
史虽繁,读有次。史记一,汉书二。<br>
后汉三,国志四。兼证经,参通鉴。<br>
读史者,考实录。通古今,若亲目。<br>
昔仲尼,师项橐。古圣贤,尚勤学。<br>
赵中令,读鲁论。彼既仕,学且勤。<br>
披蒲编,削竹简。彼无书,且知勉。<br>
头悬梁,锥刺股。彼不教,自勤苦。<br>
如囊萤,如映雪。家虽贫,学不辍。<br>
如负薪,如挂角。身虽劳,犹苦卓。<br>
苏老泉,二十七。始发愤,读书籍。<br>
彼既老,犹悔迟。尔小生,宜早思。<br>
若梁灏,八十二。对大廷,魁多士。<br>
彼既成,众称异。尔小生,宜立志。<br>
莹八岁,能咏诗。泌七岁,能赋棋。<br>
彼颖悟,人称奇。尔幼学,当效之。<br>
蔡文姬,能辨琴。谢道韫,能咏吟。<br>
彼女子,且聪敏。尔男子,当自警。<br>
唐刘晏,方七岁。举神童,作正字。<br>
口而诵,心而惟。朝于斯,夕于斯。<br>
晏虽幼,身已仕。有为者,亦若是。<br>
犬守夜,鸡司晨。苟不学,曷为人。<br>
蚕吐丝,蜂酿蜜。人不学,不如物。<br>
幼而学,壮而行。上致君,下泽民。<br>
扬名声,显父母。光于前,裕于后。<br>
人遗子,金满赢。我教子,唯一经。<br>
勤有功,戏无益。戒之哉,宜勉力。</p>
- https://jasssssson.github.io/posts/%E4%B8%AD%E6%96%87/threecharacterclassic/ - jASSSSSSON</description>
</item>
<item>
<title>简单配置Springboot(Idea)</title>
<link>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/springboot/</link>
<pubDate>Mon, 10 Aug 2020 13:51:30 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/springboot/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/springboot/ -<h2 id="背景信息">背景信息</h2>
<p>使用Idea搭建项目,Spring Initializr生成项目结构,下面是快速跳转入口,如有需要,请点击进行快速跳转<br>
<a href="#%E8%83%8C%E6%99%AF%E4%BF%A1%E6%81%AF">背景信息</a><br>
<a href="#%E7%8E%AF%E5%A2%83%E4%BB%8B%E7%BB%8D">环境介绍</a><br>
<a href="#%E9%A1%B9%E7%9B%AE%E6%90%AD%E5%BB%BA">项目搭建</a><br>
<a href="#%E4%BB%A3%E7%A0%81">代码</a><br>
<a href="#%E7%BB%93%E8%AF%AD">结语</a></p>
<hr>
<h2 id="环境介绍">环境介绍</h2>
<p>操作系统:Windows10<br>
Idea:2020.1-x64<br>
Maven:3</p>
<hr>
<h2 id="项目搭建">项目搭建</h2>
<ol>
<li>
<h3 id="打开idea">打开Idea</h3>
<p> 点击新建项目<br>
<img src="https://www.962v.com/images/2020/08/12/IdeaC.png" alt="IdeaC"></p>
</li>
<li>
<h3 id="设置参数">设置参数</h3>
<p><img src="https://www.962v.com/images/2020/08/12/SpringbootDemo.png" alt="IdeaSpringbootDemo"></p>
<p><img src="https://www.962v.com/images/2020/08/12/SpringbootDemo1.png" alt="IdeaSpringbootDemo1"></p>
<p><code>注意勾选依赖</code><br>
<img src="https://www.962v.com/images/2020/08/12/SpringbootDemo2.png" alt="IdeaSpringbootDemo2"></p>
<p><img src="https://www.962v.com/images/2020/08/12/SpringbootDemo3.png" alt="IdeaSpringbootDemo3"></p>
<p><img src="https://www.962v.com/images/2020/08/12/SpringbootDemo4.png" alt="IdeaSpringbootDemo4"></p>
</li>
<li>
<h3 id="项目初始化">项目初始化</h3>
<p> 需要注意的是,Springboot扫描的方式是以启动器所在的目录开始,想下扫描,也就是说如果包建在启动器所在包上层,则无法加载到。比如</p>
<pre><code> ├─com
├─applicaton
└─applicaton.java #启动器
├─test #可以扫描到
└─test.java #可以扫描到
└─...#可以扫描到
├─... #可以扫描到
├─demo # 无法扫描到
</code></pre><p><img src="https://www.962v.com/images/2020/08/12/SpringbootDemo5.png" alt="IdeaSpringbootDemo5"></p>
</li>
<li>
<h3 id="编写helloworld">编写HelloWorld</h3>
<p> 在此之前,为了结构方便管理,我将启动器转移到了<code>[com]</code>下(以前在<code>[com.demo]</code>),需要注意的是,启动器变更位置需要调整配置,如果是在Idea里拖动文件则不会(Idea会查找所有引用到的地方统一修改<code>点赞!:)</code>),在外部跳转的话需要去<code>[.idea]</code>下的<code>workspace.xml</code>里寻找<code>component name=&quot;RunManager&quot;&gt;</code>将里面的<code>&lt;option name=&quot;SPRING_BOOT_MAIN_CLASS&quot; value=&quot;com.DemoApplication&quot; /&gt;</code>中的<code>value</code>改为对应启动器的路径。<br>
<code>[注意]</code> : 启动器不可以直接放到<code>[java]</code>下!至少有一个父包。
然后使用注解的方式编写控制器(<code>@RestController</code>是<code>@Controller</code>与<code>@ResponseBody</code>的集合)。
<img src="https://www.962v.com/images/2020/08/12/SpringbootDemo6.png" alt="IdeaSpringbootDemo6"></p>
</li>
<li>
<h3 id="运行">运行</h3>
<p> 需要先行配置一下数据库,如果没有的话请添加<code>@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})</code>,然后引入相关包即可。
<img src="https://www.962v.com/images/2020/08/12/SpringbootDemo7.png" alt="IdeaSpringbootDemo7"></p>
<p>恭喜!<code>:)</code><br>
<img src="https://www.962v.com/images/2020/08/12/SpringbootDemo8.png" alt="IdeaSpringbootDemo8"></p>
</li>
</ol>
<hr>
<h2 id="代码">代码</h2>
<p> <a href="https://github.com/jASSSSSSON/Springboot">请点击传送门前往Github项目&mdash;&gt;</a></p>
<hr>
<h2 id="结语">结语</h2>
<p> 感谢阅读我的博客,希望能给你带来帮助。<code>:)</code> <a href="https://github.com/jASSSSSSON">@jASSSSSSON</a></p>
- https://jasssssson.github.io/posts/%E9%85%8D%E7%BD%AE/springboot/ - jASSSSSSON</description>
</item>
<item>
<title>:(</title>
<link>https://jasssssson.github.io/posts/%E9%97%AE%E9%A2%98/small-problem/</link>
<pubDate>Fri, 03 Jul 2020 18:37:05 +0800</pubDate>
<guid>https://jasssssson.github.io/posts/%E9%97%AE%E9%A2%98/small-problem/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E9%97%AE%E9%A2%98/small-problem/ -<h2 id="1解析jsp需要在maven中添加依赖"><code>1.</code>解析<code>.jsp</code>需要在maven中添加依赖</h2>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-xml" data-lang="xml"> <span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>javax.servlet<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>jstl<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
<span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>org.apache.tomcat.embed<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>tomcat-embed-jasper<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;scope&gt;</span>provided<span style="color:#f92672">&lt;/scope&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
</code></pre></div><hr>
<h2 id="2解析html需要在maven中添加依赖"><code>2.</code>解析<code>.html</code>需要在maven中添加依赖</h2>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-xml" data-lang="xml"> <span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>org.springframework.boot<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>spring-boot-starter-thymeleaf<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
</code></pre></div><hr>
<h2 id="3使用springcloud中的eureka服务时"><code>3.</code>使用<code>SpringCloud</code>中的<code>Eureka</code>服务时</h2>
<p>spring boot 2.x 需要这个依赖</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-xml" data-lang="xml"> <span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>org.springframework.cloud<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>spring-cloud-starter-netflix-eureka-server<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
</code></pre></div><p>spring boot 1.x 需要这个依赖</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-xml" data-lang="xml"> <span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>org.springframework.cloud<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>spring-cloud-starter-eureka<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
</code></pre></div><hr>
<h2 id="3使用springcloud中的fegin注册服务时"><code>3.</code>使用<code>SpringCloud</code>中的<code>Fegin</code>注册服务时</h2>
<p>spring boot 2.x 需要这个依赖</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-xml" data-lang="xml"> <span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>org.springframework.cloud<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>spring-cloud-starter-openfeign<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
</code></pre></div><p>spring boot 1.x 需要这个依赖</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-xml" data-lang="xml"> <span style="color:#f92672">&lt;dependency&gt;</span>
<span style="color:#f92672">&lt;groupId&gt;</span>org.springframework.cloud<span style="color:#f92672">&lt;/groupId&gt;</span>
<span style="color:#f92672">&lt;artifactId&gt;</span>spring-cloud-starter-feign<span style="color:#f92672">&lt;/artifactId&gt;</span>
<span style="color:#f92672">&lt;/dependency&gt;</span>
</code></pre></div><hr>
<h2 id="heading">&hellip;</h2>
- https://jasssssson.github.io/posts/%E9%97%AE%E9%A2%98/small-problem/ - jASSSSSSON</description>
</item>
<item>
<title>Chapter VI: Esmeralda</title>
<link>https://jasssssson.github.io/posts/%E6%95%85%E4%BA%8B/chapter-6/</link>
<pubDate>Fri, 14 Apr 2017 11:25:05 -0400</pubDate>
<guid>https://jasssssson.github.io/posts/%E6%95%85%E4%BA%8B/chapter-6/</guid>
<description>jASSSSSSON's Blog https://jasssssson.github.io/posts/%E6%95%85%E4%BA%8B/chapter-6/ -<p>We are delighted to be able to inform the reader, that during the whole of
this scene, Gringoire and his piece had stood firm. His actors, spurred on
by him, had not ceased to spout his comedy, and he had not ceased to
listen to it. He had made up his mind about the tumult, and was determined
to proceed to the end, not giving up the hope of a return of attention on
the part of the public. This gleam of hope acquired fresh life, when he
saw Quasimodo, Coppenole, and the deafening escort of the pope of the
procession of fools quit the hall amid great uproar. The throng rushed
eagerly after them. “Good,” he said to himself, “there go all the
mischief-makers.” Unfortunately, all the mischief-makers constituted the
entire audience. In the twinkling of an eye, the grand hall was empty.</p>
<p>To tell the truth, a few spectators still remained, some scattered, others
in groups around the pillars, women, old men, or children, who had had
enough of the uproar and tumult. Some scholars were still perched astride
of the window-sills, engaged in gazing into the Place.</p>
<p>“Well,” thought Gringoire, “here are still as many as are required to hear
the end of my mystery. They are few in number, but it is a choice
audience, a lettered audience.”</p>
<p>An instant later, a symphony which had been intended to produce the
greatest effect on the arrival of the Virgin, was lacking. Gringoire
perceived that his music had been carried off by the procession of the
Pope of the Fools. “Skip it,” said he, stoically.</p>
<p>He approached a group of bourgeois, who seemed to him to be discussing his
piece. This is the fragment of conversation which he caught,—</p>
<p>“You know, Master Cheneteau, the Hôtel de Navarre, which belonged to
Monsieur de Nemours?”</p>
<p>“Yes, opposite the Chapelle de Braque.”</p>
<p>“Well, the treasury has just let it to Guillaume Alixandre, historian, for
six hivres, eight sols, parisian, a year.”</p>
<p>“How rents are going up!”</p>
<p>“Come,” said Gringoire to himself, with a sigh, “the others are
listening.”</p>
<p>“Comrades,” suddenly shouted one of the young scamps from the window, “La
Esmeralda! La Esmeralda in the Place!”</p>
<p>This word produced a magical effect. Every one who was left in the hall
flew to the windows, climbing the walls in order to see, and repeating,
“La Esmeralda! La Esmeralda?” At the same time, a great sound of applause
was heard from without.</p>
<p>“What’s the meaning of this, of the Esmeralda?” said Gringoire, wringing
his hands in despair. “Ah, good heavens! it seems to be the turn of the
windows now.”</p>
<p>He returned towards the marble table, and saw that the representation had
been interrupted. It was precisely at the instant when Jupiter should have
appeared with his thunder. But Jupiter was standing motionless at the foot
of the stage.</p>
<p>“Michel Giborne!” cried the irritated poet, “what are you doing there? Is
that your part? Come up!”</p>
<p>“Alas!” said Jupiter, “a scholar has just seized the ladder.”</p>
<p>Gringoire looked. It was but too true. All communication between his plot
and its solution was intercepted.</p>
<p>“The rascal,” he murmured. “And why did he take that ladder?”</p>
<p>“In order to go and see the Esmeralda,” replied Jupiter piteously. “He
said, ‘Come, here’s a ladder that’s of no use!’ and he took it.”</p>
<p>This was the last blow. Gringoire received it with resignation.</p>
<p>“May the devil fly away with you!” he said to the comedian, “and if I get
my pay, you shall receive yours.”</p>
<p>Then he beat a retreat, with drooping head, but the last in the field,
like a general who has fought well.</p>
<p>And as he descended the winding stairs of the courts: “A fine rabble of
asses and dolts these Parisians!” he muttered between his teeth; “they
come to hear a mystery and don’t listen to it at all! They are engrossed
by every one, by Chopin Trouillefou, by the cardinal, by Coppenole, by
Quasimodo, by the devil! but by Madame the Virgin Mary, not at all. If I
had known, I’d have given you Virgin Mary; you ninnies! And I! to come to
see faces and behold only backs! to be a poet, and to reap the success of
an apothecary! It is true that Homerus begged through the Greek towns, and
that Naso died in exile among the Muscovites. But may the devil flay me if
I understand what they mean with their Esmeralda! What is that word, in
the first place?—‘tis Egyptian!”</p>
- https://jasssssson.github.io/posts/%E6%95%85%E4%BA%8B/chapter-6/ - jASSSSSSON</description>
</item>
</channel>
</rss>