Skip to content

Commit e2bb07b

Browse files
committed
chore: clean codes
1 parent f4d800e commit e2bb07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/problem-detail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Let's take a closer look at the new [`ProblemDetail`](https://docs.spring.io/spr
1818

1919
The `ProblemDetail` class provides two convenient factory methods: `forStatus(HttpStatus status)` and `forStatusAndDetail(HttpStatusCode status, String detail)`, making it easy to create ProblemDetail objects.
2020

21-
In a Spring WebMvc or WebFlux project, you can assemble error responses using `@ExceptionHandler` methods in a `@ControllerAdvice/@RestControllerAdvice` bean:
21+
In a Spring WebMvc or WebFlux project, you can assemble error responses using `@ExceptionHandler` methods in a `@ControllerAdvice/@RestControllerAdvice` bean, update the method returns a `ResponseEntity<ProblemDetail>` or `ProblemDetail`.
2222

2323
```java
2424
@RestControllerAdvice

0 commit comments

Comments
 (0)