1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

docs: add linter

This commit is contained in:
Mr.Hope 2023-04-28 17:35:43 +08:00
parent 6bdc809e2f
commit 4df51f86e9
6 changed files with 28 additions and 27 deletions

View File

@ -14,6 +14,7 @@
"style": "---"
},
"MD040": false,
"MD045": false,
"MD046": false,
"MD049": false
}

View File

@ -127,5 +127,5 @@ Bob 大叔将自己对整洁代码的理解浓缩在了这本书中,真可谓
最后再推荐两个相关的文档:
- **阿里巴巴 Java 开发手册** https://github.com/alibaba/p3c
- **Google Java 编程风格指南** http://www.hawstein.com/posts/google-java-style.html
- **阿里巴巴 Java 开发手册** <https://github.com/alibaba/p3c>
- **Google Java 编程风格指南** <http://www.hawstein.com/posts/google-java-style.html>

View File

@ -84,9 +84,9 @@ COMMIT;
插入数据这里,我们没有使用 `insert into` 而是使用 `replace into` 来插入数据,具体步骤是这样的:
1)第一步: 尝试把数据插入到表中。
- 第一步: 尝试把数据插入到表中。
2)第二步: 如果主键或唯一索引字段出现重复数据错误而插入失败时,先从表中删除含有重复关键字值的冲突行,然后再次尝试把数据插入到表中。
- 第二步: 如果主键或唯一索引字段出现重复数据错误而插入失败时,先从表中删除含有重复关键字值的冲突行,然后再次尝试把数据插入到表中。
这种方式的优缺点也比较明显:

View File

@ -4,7 +4,7 @@
## 阐述 Servlet 和 CGI 的区别?
### CGI 的不足之处:
### CGI 的不足之处
1需要为每个请求启动一个操作 CGI 程序的系统进程。如果请求频繁,这将会带来很大的开销。
@ -12,7 +12,7 @@
3需要重复编写处理网络协议的代码以及编码这些工作都是非常耗时的。
### Servlet 的优点:
### Servlet 的优点
1只需要启动一个操作系统进程以及加载一个 JVM大大降低了系统的开销
@ -48,8 +48,8 @@ get 和 post 请求实际上是没有区别,大家可以自行查询相关文
推荐阅读:
- https://www.zhihu.com/question/28586791
- https://mp.weixin.qq.com/s?__biz=MzI3NzIzMzg3Mw==&mid=100000054&idx=1&sn=71f6c214f3833d9ca20b9f7dcd9d33e4#rd
- <https://www.zhihu.com/question/28586791>
- <https://mp.weixin.qq.com/s?__biz=MzI3NzIzMzg3Mw==&mid=100000054&idx=1&sn=71f6c214f3833d9ca20b9f7dcd9d33e4#rd>
## 什么情况下调用 doGet()和 doPost()

View File

@ -231,8 +231,8 @@ public class TestJob implements SimpleJob {
**相关地址:**
- Github 地址https://github.com/apache/shardingsphere-elasticjob。
- 官方网站https://shardingsphere.apache.org/elasticjob/index_zh.html 。
- Github 地址:<https://github.com/apache/shardingsphere-elasticjob>
- 官方网站:<https://shardingsphere.apache.org/elasticjob/index_zh.html>
**优缺点总结:**
@ -288,8 +288,8 @@ public ReturnT<String> myAnnotationJobHandler(String param) throws Exception {
**相关地址:**
- Github 地址https://github.com/xuxueli/xxl-job/。
- 官方介绍https://www.xuxueli.com/xxl-job/ 。
- Github 地址:<https://github.com/xuxueli/xxl-job/>
- 官方介绍:<https://www.xuxueli.com/xxl-job/>
**优缺点总结:**

View File

@ -10,7 +10,7 @@
"docs:build": "vuepress build docs",
"docs:dev": "vuepress dev docs",
"docs:clean-dev": "vuepress dev docs --clean-cache",
"lint": "prettier --check --write . && markdownlint **/*.md"
"lint": "prettier --check --write . && markdownlint docs/**/*.md"
},
"dependencies": {
"@vuepress/client": "2.0.0-beta.61",