diff --git a/problem-spring-web/README.md b/problem-spring-web/README.md index 6af46915..86a1ea6a 100644 --- a/problem-spring-web/README.md +++ b/problem-spring-web/README.md @@ -88,13 +88,16 @@ class ExceptionHandling implements ProblemHandling { } ``` +In case you are already have a ControllerAdvice, you may want to adjust your code to solely rely on this library, or set a `@Order(Ordered.HIGHEST_PRECEDENCE)` in your existing Advice for specific exceptions and leave the others for the library to handle. + The [`NoHandlerFoundAdviceTrait`](src/main/java/org/zalando/problem/spring/web/advice/routing/NoHandlerFoundAdviceTrait.java) in addition also requires the following configuration: ```yaml spring: - resources: - add-mappings: false + web: + resources: + add-mappings: false mvc: throw-exception-if-no-handler-found: true ```