8000 Update springboot-handle-exception.md · zhangmf-java/springboot-guide@f3d18e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3d18e6

Browse files
authored
Update springboot-handle-exception.md
1 parent bc6e758 commit f3d18e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

md/springboot-handle-exception.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 1. 使用 **@ControllerAdvice****@ExceptionHandler** 处理全局异常
1+
### 1. 使用 **@ControllerAdvice**@ExceptionHandler处理全局异常
22

33
这是目前很常用的一种方式,非常推荐。测试代码中用到了 Junit 5,如果你新建项目验证下面的代码的话,记得添加上相关依赖。
44

@@ -264,4 +264,4 @@ public class ResponseStatusExceptionController {
264264

265265
- status : http status
266266
- reason :response 的消息内容
267-
- cause : 抛出的异常
267+
- cause : 抛出的异常

0 commit comments

Comments
 (0)
0