diff --git a/demo-apidoc/demo-apidoc-springdoc/README.md b/demo-apidoc/demo-apidoc-springdoc/README.md
index 95047b1..e3804f2 100644
--- a/demo-apidoc/demo-apidoc-springdoc/README.md
+++ b/demo-apidoc/demo-apidoc-springdoc/README.md
@@ -1,9 +1,10 @@
-## spring-boot-demo-springdoc
+# spring-boot-demo-springdoc
> 此 demo 主要演示了 Spring Boot 如何通过 Springdoc 集成 swagger
-### 1.开发步骤
-#### 1.1.添加依赖
+## 1.开发步骤
+
+### 1.1.添加依赖
> 3.0.0-M4 依赖的 servlet 为 jakarta,目前 release 的 Springdoc 依赖的是 javax.servlet-api,需要同时使用最新的 2.0.0-M5
@@ -39,7 +40,7 @@
```
-#### 1.2.编写测试接口
+### 1.2.编写测试接口
```java
@Slf4j
@@ -113,7 +114,7 @@ public class UserController {
```
-#### 1.3.编写返回对象
+### 1.3.编写返回对象
```java
@Data
@@ -141,7 +142,7 @@ public class User implements Serializable {
}
```
-#### 1.4.配置 Springdoc
+### 1.4.配置 Springdoc
- **SpringdocAutoConfiguration**
@@ -169,11 +170,11 @@ springdoc:
packages-to-scan: com.xkcoding.swagger.controller
```
-### 2.测试
+## 2.测试
启动项目,访问地址:http://localhost:8080/demo/swagger-ui/index.html
-### 3.参考
+## 3.参考
- [Springdoc 官方文档](https://springdoc.org/)
- [Springfox 迁移到 Springdoc 步骤](https://springdoc.org/#migrating-from-springfox)
diff --git a/demo-base/demo-base-async/README.md b/demo-base/demo-base-async/README.md
index e4fbf6a..98ed755 100644
--- a/demo-base/demo-base-async/README.md
+++ b/demo-base/demo-base-async/README.md
@@ -1,10 +1,10 @@
-## spring-boot-demo-async
+# spring-boot-demo-async
> 此 demo 主要演示了 Spring Boot 如何使用原生提供的异步任务支持,实现异步执行任务。
-### 1.开发步骤
+## 1.开发步骤
-#### 1.1.添加依赖
+### 1.1.添加依赖
```xml
@@ -27,7 +27,7 @@
```
-#### 1.2.增加异步线程池的配置
+### 1.2.增加异步线程池的配置
> 注意:如果不配置的话,会使用默认的线程池配置
@@ -50,7 +50,7 @@ spring:
thread-name-prefix: async-task-
```
-#### 1.3.同步、异步任务模拟
+### 1.3.同步、异步任务模拟
> 1. 异步方法的返回值,需要指定为:`java.util.concurrent.Future`,`org.springframework.util.concurrent.ListenableFuture`,`java.util.concurrent.CompletableFuture`
> 2. 方法上标记 `@Async`
@@ -116,7 +116,7 @@ public class MockTaskFactory {
}
```
-#### 1.4.在启动类上增加注解 `@EnableAsync`
+### 1.4.在启动类上增加注解 `@EnableAsync`
```java
@EnableAsync
@@ -130,9 +130,9 @@ public class AsyncApplication {
}
```
-### 2.测试
+## 2.测试
-#### 2.1.编写测试代码
+### 2.1.编写测试代码
```java
@Slf4j
@@ -178,7 +178,7 @@ public class MockTaskFactoryTest {
}
```
-#### 2.2运行结果
+### 2.2运行结果
运行 `MockTaskFactoryTest`,查看日志
@@ -206,6 +206,6 @@ INFO 11574 --- [ main] com.xkcoding.async.task.MockTaskFactory : task
INFO 11574 --- [ main] c.x.async.task.MockTaskFactoryTest : 同步任务全部执行结束,总耗时:10032 毫秒
```
-### 3.参考
+## 3.参考
- [Spring Boot 官方文档之异步任务线程池的配置](https://docs.spring.io/spring-boot/docs/3.0.0-M4/reference/htmlsingle/#features.task-execution-and-scheduling)
diff --git a/demo-base/demo-base-email/README.md b/demo-base/demo-base-email/README.md
index 1265afe..f19ffe1 100644
--- a/demo-base/demo-base-email/README.md
+++ b/demo-base/demo-base-email/README.md
@@ -1,10 +1,10 @@
-## spring-boot-demo-email
+# spring-boot-demo-email
> 此 demo 主要演示了 Spring Boot 如何整合邮件功能,包括发送简单文本邮件、HTML邮件(包括模板HTML邮件)、附件邮件、静态资源邮件。
-### 1.开发步骤
+## 1.开发步骤
-#### 1.1.添加依赖
+### 1.1.添加依赖
```xml
@@ -41,7 +41,7 @@
```
-#### 1.2.添加邮件相关配置
+### 1.2.添加邮件相关配置
```yaml
spring:
@@ -67,7 +67,7 @@ jasypt:
password: spring-boot-demo
```
-#### 1.3.编写发送邮件代码
+### 1.3.编写发送邮件代码
- **抽象邮件服务接口**,方便后期替换不同的客户端实现
@@ -240,7 +240,7 @@ public class MailServiceImpl implements MailService {
- 其他资源文件参考 `classpath://resources` 目录
-### 2.测试
+## 2.测试
参考 `MailServiceTest` 测试用例,分别运行各个方法,进行邮件测试
> 注意:
@@ -248,7 +248,7 @@ public class MailServiceImpl implements MailService {
> 2. **强烈建议各位同学测试的时候,把邮箱改成自己的邮箱进行测试,这样才能实际体会到收到的邮件内容**
> 3. 请勿将 `spring-boot-demo@xkcoding.com` 的邮箱用于发送违法内容,否则作者将收回邮箱权限,同时提交给公安依法追究
-### 3.参考
+## 3.参考
- [Spring Boot 官方文档之邮件](https://docs.spring.io/spring-boot/docs/3.0.0-M4/reference/htmlsingle/#io.email)
- [Spring 官方文档之邮件](https://docs.spring.io/spring-framework/docs/6.0.0-M5/reference/html/integration.html#mail)
diff --git a/demo-base/demo-base-exception/README.md b/demo-base/demo-base-exception/README.md
index f8a0e63..8757838 100644
--- a/demo-base/demo-base-exception/README.md
+++ b/demo-base/demo-base-exception/README.md
@@ -1,10 +1,10 @@
-## spring-boot-demo-exception-handler
+# spring-boot-demo-exception-handler
> 此 demo 演示了如何在Spring Boot中进行统一的异常处理,包括了两种方式的处理:第一种对常见API形式的接口进行异常处理,统一封装返回格式;第二种是对模板页面请求的异常处理,统一处理错误页面。
-### 1.开发步骤
+## 1.开发步骤
-#### 1.1.添加依赖
+### 1.1.添加依赖
```xml
@@ -38,7 +38,7 @@
```
-#### 1.2.构造JSON异常和页面跳转异常
+### 1.2.构造JSON异常和页面跳转异常
```java
// JSON 异常
@@ -68,7 +68,8 @@ public class PageException extends CommonBizException {
}
```
-#### 1.3.异常拦截
+### 1.3.异常拦截
+
```java
@Slf4j
@ControllerAdvice
@@ -105,7 +106,7 @@ public class DemoExceptionHandler {
}
```
-#### 1.4.编写统一错误页面
+### 1.4.编写统一错误页面
> 位于 `src/main/resources/template` 目录下
@@ -123,9 +124,9 @@ public class DemoExceptionHandler {