File tree Expand file tree Collapse file tree 6 files changed +19
-9
lines changed Expand file tree Collapse file tree 6 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 10
10
11
11
### 基础
12
12
13
- 1 . [ RestController VS Controller] ( ./md/RestControllerVSController.md )
14
- 2 . [ SpringBoot 使用 spring-boot-devtools 热部署 ] ( ./md/spring-boot-devtools.md )
13
+ 1 . ** [ RestController VS Controller] ( ./md/RestControllerVSController.md ) **
14
+ 2 . [ SpringBoot 使用 spring-boot-devtools 进行热部署 ] ( ./md/spring-boot-devtools.md )
15
15
3 . [ 整合 SpringBoot+Mybatis] ( ./md/springboot-mybatis.md ) 、[ SpirngBoot2.0+ 的 SpringBoot+Mybatis 多数据源配置] ( ./md/springboot-mybatis-mutipledatasource.md )
16
16
17
17
### 进阶
Original file line number Diff line number Diff line change 1
1
很多时候我们都需要为系统建立一个定时任务来帮我们做一些事情,SpringBoot 已经帮我们实现好了一个,我们只需要直接使用即可,当然你也可以不用 SpringBoot 自带的定时任务,整合 Quartz 很多时候也是一个不错的选择。
2
2
3
- 本文不涉及 SpringBoot 整合 Quartz 的内容,只演示了如何使用 SpringBoot 自带的实现定时任务的方式。
3
+ 本文不涉及 SpringBoot 整合 Quartz 的内容,只演示了如何使用 SpringBoot 自带的实现定时任务的方式。相关代码地址: https://github.com/Snailclimb/springboot-guide/tree/master/springboot-schedule-tast
4
4
5
5
## Spring Schedule 实现定时任务
6
6
@@ -215,3 +215,4 @@ Current Thread : task-3
215
215
Fixed Delay Task : The time is now 14:27:36
216
216
```
217
217
218
+ 相关代码地址:https://github.com/Snailclimb/springboot-guide/tree/master/springboot-schedule-tast
Original file line number Diff line number Diff line change @@ -481,4 +481,6 @@ public class PersonService {
481
481
## 参考
482
482
483
483
- https://reflectoring.io/bean-validation-with-spring-boot/
484
- - https://www.cnkirito.moe/spring-validation//
484
+ - https://www.cnkirito.moe/spring-validation//
485
+
486
+ 相关代码地址:https://github.com/Snailclimb/springboot-guide/tree/master/bean-validation-demo
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ mv zookeeper-3.4.12 zookeeper
131
131
132
132
``` shell
133
133
rm -rf zookeeper-3.4.12.tar.gz
134
- ```
134
+ ```
135
135
136
136
### 3. 进入zookeeper目录,创建data文件夹。
137
137
@@ -176,8 +176,7 @@ dataDir=/usr/local/zookeeper/data
176
176
177
177
![ 运行 netstat -lntup命令查看网络状态] ( http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-11-20/91151305.jpg )
178
178
179
-
180
- ----
179
+ ----
181
180
182
181
注意没有关闭防火墙可能出现的问题!!!
183
182
@@ -407,3 +406,7 @@ public class DubboConsumerApplication {
407
406
### 6. 测试效果
408
407
409
408
浏览器访问 [ http://localhost:8330/hello ] ( http://localhost:8330/hello ) 页面返回 Hello world,控制台输出 Hello SnailClimb,和预期一直,使用SpringBoot+Dubbo 搭建第一个简单的分布式服务实验成功!
409
+
410
+
411
+
412
+ 相关代码地址:https://github.com/Snailclimb/springboot-guide/tree/master/springboot-dubbo
Original file line number Diff line number Diff line change @@ -265,3 +265,5 @@ public class ResponseStatusExceptionController {
265
265
- status : http status
266
266
- reason :response 的消息内容
267
267
- cause : 抛出的异常
268
+
269
+ 相关代码地址:https://github.com/Snailclimb/springboot-guide/tree/master/springboot-handle-exception
Original file line number Diff line number Diff line change 2
2
3
3
[ https://help.aliyun.com/product/31815.html?spm=a2c4g.11186623.6.540.4e401c62EyJK5T ] ( https://help.aliyun.com/product/31815.html?spm=a2c4g.11186623.6.540.4e401c62EyJK5T )
4
4
5
- 本篇文章会介绍到 SpringBoot 整合阿里云OSS 存储服务实现文件上传下载以及简单的查看。其实今天将的应该算的上是一个简单的小案例了,涉及到的知识点还算是比较多。
5
+ 本篇文章会介绍到 SpringBoot 整合阿里云OSS 存储服务实现文件上传下载以及简单的查看。其实今天将的应该算的上是一个简单的小案例了,涉及到的知识点还算是比较多。相关代码地址: https://github.com/Snailclimb/springboot-guide/tree/master/springboot-oss 。
6
6
7
7
<!-- MarkdownTOC -->
8
8
32
32
具有 Java 基础以及SpringBoot 简单基础知识即可。
33
33
34
34
### 1.2 环境参数
35
-
35
+
36
36
- 开发工具:IDEA
37
37
- 基础工具:Maven+JDK8
38
38
- 所用技术:SpringBoot+阿里云OSS 存储服务 Java 相关API
@@ -510,3 +510,5 @@ JS 的内容主要是让我们上传的图片可以预览,就像我们在网
510
510
511
511
我们终于能够独立利用阿里云 OSS 完成一个自己的图床服务,但是其实如果你想用阿里云OSS当做图床可以直接使用极简图床:[ http://jiantuku.com ] ( http://jiantuku.com ) 上传图片,比较方便!大家可能心里在想那你特么让我实现个图床干嘛?我觉得通过学习,大家以后可以做很多事情,比如 利用阿里云OSS 存储服务存放自己网站的相关图片。
512
512
513
+ 相关代码地址:https://github.com/Snailclimb/springboot-guide/tree/master/springboot-oss 。
514
+
You can’t perform that action at this time.
0 commit comments