-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
407 lines (249 loc) · 13.5 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
<!DOCTYPE HTML>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>喔喔</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
<meta name="author" content="IM_WOWER">
<meta name="description" content="喔喔">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="im_wower" />
<meta name="twitter:title" content="喔喔" />
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/wower.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/wower.jpg">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 5.3.0"></head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/wower.jpg" alt="喔喔" title="喔喔"/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="喔喔">喔喔</a></h1>
<h2 class="blog-motto">喔喔的收藏夹</h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="Menu">
</a></div>
<nav class="animated">
<ul>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/archives">Archives</a></li>
<li><a href="/links">Links</a></li>
<li><a href="/about">About</a></li>
<li>
</li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main">
<section class="post" itemscope itemprop="blogPost">
<a href="/2024/12/09/spring-global-api-response/" title="Spring如何对Controller的返回值进行统一格式化输出" itemprop="url">
<h1 itemprop="name">Spring如何对Controller的返回值进行统一格式化输出</h1>
<p itemprop="description" >Spring如何对Controller的返回值进行统一格式化输出前言Spring的RestController中,经常需要对返回值进行封装,将Java的VO或DTO对象封装为带code和message的响应结果。但是又不想每个方法都进行处理,类似:Respose.success(</p>
<time datetime="2024-12-09T11:23:21.000Z" itemprop="datePublished">2024-12-09</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2024/12/06/spring-validate-enum/" title="Spring如何对Enum进行validate" itemprop="url">
<h1 itemprop="name">Spring如何对Enum进行validate</h1>
<p itemprop="description" >Spring如何对Enum进行validate前言Spring的HTTP请求中,一般都需要对接口参数进行校验,如:在对象上使用@NotNull等注解;那么如何对枚举(enum)进行校验呢?
新建一个自定义注解@ValueOfEnum:
@Documented
@Constrai</p>
<time datetime="2024-12-06T18:44:21.000Z" itemprop="datePublished">2024-12-06</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2024/12/05/spring-mock-publisher/" title="Spring如何对ApplicationEventPublisher进行Mock" itemprop="url">
<h1 itemprop="name">Spring如何对ApplicationEventPublisher进行Mock</h1>
<p itemprop="description" >Spring如何对ApplicationEventPublisher进行Mock前言Spring框架里,ApplicationEventPublisher默认是不能Mock的,因为ApplicationEventPublisher是一个复杂的Bean,不能简单的被Mock,会报错</p>
<time datetime="2024-12-05T14:12:21.000Z" itemprop="datePublished">2024-12-05</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2023/04/16/learning-rust/" title="Rust学习笔记" itemprop="url">
<h1 itemprop="name">Rust学习笔记</h1>
<p itemprop="description" >Rust学习笔记// TODO</p>
<time datetime="2023-04-16T17:27:00.000Z" itemprop="datePublished">2023-04-16</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2022/05/27/install-zerotier/" title="ZeroTier安装与配置" itemprop="url">
<h1 itemprop="name">ZeroTier安装与配置</h1>
<p itemprop="description" >ZeroTier安装与配置前言家里和公司总会有很多设备需要管理,虽然可以通过类似向日葵、TeamViewer等进行远程控制,但是总是不方便;如果是安装VPN的方式,所有的流量都走VPN,内网的设备互联比较慢;需要一种能将所有设备通过虚拟内网的方式连接起来,同时,如果设备自身在同一</p>
<time datetime="2022-05-27T23:54:00.000Z" itemprop="datePublished">2022-05-27</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2022/05/05/install-keepalived/" title="keepalived安装与配置" itemprop="url">
<h1 itemprop="name">keepalived安装与配置</h1>
<p itemprop="description" >keepalived安装与配置前言在多机环境下,安装keepalived,保证高可用;同时多个机器对外暴露一个VIP(Virtual IP),客户端连接VIP即可;
开始0. 前置条件
多个机器,如:
Node1(主节点 MASTER): 192.168.31.1
Node2(备</p>
<time datetime="2022-05-05T22:04:00.000Z" itemprop="datePublished">2022-05-05</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2022/02/27/java-set-if-not-null-extension/" title="Java里判断值是否为Null并赋值给其他对象的扩展方法" itemprop="url">
<h1 itemprop="name">Java里判断值是否为Null并赋值给其他对象的扩展方法</h1>
<p itemprop="description" >Java里判断值是否为Null并赋值给其他对象的扩展方法前言项目里,经常需要判断一个对象的值是否为空,然后再判断某个属性是否为空,然后将值赋值给其他对象的属性;代码类似:
if(user.getName() != null)&#123;
user2.setName(u</p>
<time datetime="2022-02-27T00:26:21.000Z" itemprop="datePublished">2022-02-27</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2022/02/27/macos-idea-install-plantUML/" title="Macbook(M1)Idea安装PlantUML插件" itemprop="url">
<h1 itemprop="name">Macbook(M1)Idea安装PlantUML插件</h1>
<p itemprop="description" >Macbook(M1)Idea安装PlantUML插件前言最近发现PlantUML是一个非常好用的画UML图的工具;画类图、流程图、状态图、时序图非常方便,而且语法简单;
记录一下MacBook(M1)系统下给IntelliJ Idea安装PlantUML插件流程。
开始安装br</p>
<time datetime="2022-02-27T00:26:21.000Z" itemprop="datePublished">2022-02-27</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2021/12/16/book-Project-Hail-Mary/" title="图书:《挽救计划》读后感" itemprop="url">
<h1 itemprop="name">图书:《挽救计划》读后感</h1>
<p itemprop="description" >图书:《挽救计划》读后感 #年度最佳前言前段时间,有推友推荐安迪·威尔的新书《挽救计划》,英文名:《Project Hail Mary》,觉得还不错,就买了一本看看;安迪·威尔也是《火星救援》的作者;所以还是很值得读的;还有另外一本《月球城市》打算过段时间看;
介绍
《挽救计划》</p>
<time datetime="2021-12-16T14:22:53.000Z" itemprop="datePublished">2021-12-16</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2021/11/28/use-github-actions-to-deploy-hexo-blog/" title="使用GitHub Actions部署Hexo博客" itemprop="url">
<h1 itemprop="name">使用GitHub Actions部署Hexo博客</h1>
<p itemprop="description" >使用GitHub Actions部署Hexo博客前言一直都在用Hexo写博客,但是每次都需要将博客源码拉到本地,然后安装Node.js、Git等环境,之后再写博客就忘了要写什么内容了;
所以这次折腾一下使用GitHub Actions来自动构建和部署Hexo内容。
准备
需要准备</p>
<time datetime="2021-11-28T15:47:21.000Z" itemprop="datePublished">2021-11-28</time>
</a>
</section>
<nav id="page-nav" class="clearfix">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/2/">Next ⏩</a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="Show Sidebar"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="Hide Sidebar"></a></div>
<aside class="clearfix">
<div class="categorieslist">
<p class="asidetitle">Categories</p>
<ul>
<li><a href="/categories/创意/" title="创意">创意<sup>2</sup></a></li>
<li><a href="/categories/想法/" title="想法">想法<sup>1</sup></a></li>
<li><a href="/categories/软件/" title="软件">软件<sup>1</sup></a></li>
</ul>
</div>
<div class="tagslist">
<p class="asidetitle">Tags</p>
<ul class="clearfix">
<li><a href="/tags/2020/" title="2020">2020<sup>1</sup></a></li>
<li><a href="/tags/ApplicationEventPublisher/" title="ApplicationEventPublisher">ApplicationEventPublisher<sup>1</sup></a></li>
<li><a href="/tags/Controller/" title="Controller">Controller<sup>1</sup></a></li>
<li><a href="/tags/Enum/" title="Enum">Enum<sup>1</sup></a></li>
<li><a href="/tags/Evernote/" title="Evernote">Evernote<sup>1</sup></a></li>
<li><a href="/tags/GitHub/" title="GitHub">GitHub<sup>1</sup></a></li>
<li><a href="/tags/GitHub-Actions/" title="GitHub Actions">GitHub Actions<sup>1</sup></a></li>
<li><a href="/tags/Hexo/" title="Hexo">Hexo<sup>1</sup></a></li>
<li><a href="/tags/IP地址/" title="IP地址">IP地址<sup>1</sup></a></li>
<li><a href="/tags/Idea/" title="Idea">Idea<sup>1</sup></a></li>
<li><a href="/tags/InstaPaper/" title="InstaPaper">InstaPaper<sup>1</sup></a></li>
<li><a href="/tags/IntelliJ/" title="IntelliJ">IntelliJ<sup>1</sup></a></li>
<li><a href="/tags/Java/" title="Java">Java<sup>4</sup></a></li>
<li><a href="/tags/Macbook/" title="Macbook">Macbook<sup>1</sup></a></li>
<li><a href="/tags/MethodArgumentNotValidException/" title="MethodArgumentNotValidException">MethodArgumentNotValidException<sup>1</sup></a></li>
<li><a href="/tags/Mock/" title="Mock">Mock<sup>1</sup></a></li>
<li><a href="/tags/NUL/" title="NUL">NUL<sup>1</sup></a></li>
<li><a href="/tags/P2P/" title="P2P">P2P<sup>1</sup></a></li>
<li><a href="/tags/PlantUML/" title="PlantUML">PlantUML<sup>1</sup></a></li>
<li><a href="/tags/Pocket/" title="Pocket">Pocket<sup>1</sup></a></li>
</ul>
</div>
</aside>
</div>
</div>
<footer><div id="footer">
<div class="line">
<span></span>
<div class="author"></div>
</div>
<div class="social-font" class="clearfix">
<a href="https://twitter.com/im_wower" target="_blank" title="twitter"></a>
<a href="https://github.com/imwower" target="_blank" title="github"></a>
</div>
<p class="copyright">🤍 POWERED BY <a href="http://hexo.io" target="_blank" title="hexo">HEXO</a> AND THEME BY <a href="https://github.com/wizicer/iceman" target="_blank" title="Iceman">ICEMAN</a> © COPYLEFT 2012 - 2024 COPYRIGHT
<a href="https://makefile.so" target="_blank" title="IM_WOWER">IM_WOWER 🤍</a>
</p>
</div>
<!-- Highlight.js -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/styles/atom-one-dark-reasonable.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/highlight.min.js">
</script>
<script>
hljs.initHighlightingOnLoad();
</script>
</footer>
<script src="/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.navbar').click(function(){
$('header nav').toggleClass('shownav');
});
var myWidth = 0;
function getSize(){
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
} else if( document.documentElement && document.documentElement.clientWidth) {
myWidth = document.documentElement.clientWidth;
};
};
var m = $('#main'),
a = $('#asidepart'),
c = $('.closeaside'),
o = $('.openaside');
$(window).resize(function(){
getSize();
if (myWidth >= 1024) {
$('header nav').removeClass('shownav');
}else
{
m.removeClass('moveMain');
a.css('display', 'block').removeClass('fadeOut');
o.css('display', 'none');
}
});
c.click(function(){
a.addClass('fadeOut').css('display', 'none');
o.css('display', 'block').addClass('fadeIn');
m.addClass('moveMain');
});
o.click(function(){
o.css('display', 'none').removeClass('beforeFadeIn');
a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');
m.removeClass('moveMain');
});
$(window).scroll(function(){
o.css("top",Math.max(80,260-$(this).scrollTop()));
});
});
</script>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57642548-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>