Skip to content

Commit 80d9d06

Browse files
authored
Update problem-detail.md
1 parent 06a29ec commit 80d9d06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/problem-detail.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Another widely accepted format is Problem Details, standardized by the IETF as [
77

88
Building on these industry standards, Spring 6 has introduced native support for ProblemDetails, making it easier for developers to adopt this consistent error format in their applications.
99

10-
Let's take a closer look at the new [`ProblemDetail`](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/ProblemDetail.html) class that was introduced in Spring 6, which includes several fields defined by RFC9457:
10+
Let's take a closer look at the new [`ProblemDetail`](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/http/ProblemDetail.html) class that was introduced in Spring 6, which is just a POJO and includes several fields defined by RFC 9457:
1111

1212
* `type` – A URI identifying the problem type
1313
* `status` – The HTTP status code
@@ -46,7 +46,7 @@ When an exception is handled, the response is rendered with the content type `ap
4646
"type": "http://example.com/apidoc/error/404",
4747
"status": 404,
4848
"title": "Post Not Found",
49-
"detail": "Post is not found, the id : xxxx",
49+
"detail": "Post is not found, the id: xxxx",
5050
"instance": "/api/posts/xxxx"
5151
}
5252
```
@@ -67,7 +67,7 @@ Once enabled, you can use ProblemDetails as demonstrated above. Additionally, Sp
6767
Before Spring 6, if you wanted to use Problem Details in your projects, you could consider using [`zalando/problem`](https://github.com/zalando/problem), which provides out-of-the-box [Spring Web integration](https://github.com/zalando/problem-spring-web) for both WebMvc and WebFlux stacks.
6868

6969
> [!NOTE]
70-
> Zalando's Problem and Spring integration module offers deeper integration with Spring components than the current Spring Boot built-in support. It handles security exceptions and Jakarta Validation violations, among other features.
70+
> Zalando's Problem and Spring integration module offers deeper integration with components in the Spring ecosystem than the current Spring Boot built-in Problem Details support. For example, it handles security exceptions and Jakarta Validation violations, among other features.
7171
7272
---
7373

0 commit comments

Comments
 (0)