Skip to content

Commit 708edc6

Browse files
Docs updated
1 parent e2f66c0 commit 708edc6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,9 @@ or in `application.properties` as follows
263263
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
264264
```
265265

266-
Enable Spring boot Problem details support to return similar error response in case `spring-boot-problem-handler`
267-
throws some exception while handling an exception
268-
```properties
269-
spring.mvc.problemdetails.enabled=true
270-
```
266+
> [!IMPORTANT]
267+
Spring boot 3 also provide Problem details support which must not be enabled otherwise it will shadow all `ControllerAdvice`'s provided by this library.
268+
By default `spring.mvc.problemdetails.enabled` is `false`, so it must not be set to `true`
271269

272270
Specify message source bundles as follows. Make sure to include `i18/problems` bundled in the library, as it
273271
has default messages for certain exception. And it should be last in the list of `basenames`,

0 commit comments

Comments
 (0)