You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -746,7 +746,7 @@ class CustomErrorResponseBuilder implements ErrorResponseBuilder<ServerWebExchan
746
746
### Customize or Override advices
747
747
Any autoconfigured advice can be customized by overriding the same and providing a different implementation.
748
748
Make sure to add annotation `@Order(Ordered.HIGHEST_PRECEDENCE)` over the class,
749
-
It makes this handler to take precedence over the fallback advice which handles `Throwable` i.e. for all exceptions for which no `ControllerAdvice`s are defined.
749
+
It makes this handler to take precedence over the fallback advice which handles `Throwable` i.e. for all exceptions for which no `ControllerAdvice`s are defined.
750
750
In case of Constraint Violation exceptions, the `errorKey` is derived from the field name,
751
751
but in cases where field name is customized using `@JsonProperty`,
752
752
`MethodArgumentNotValidException` may need to be customized to use `@JsonProperty` instead of class's field name in dynamically generated `erroKey` as follows
0 commit comments