diff --git a/problem-spring-web/README.md b/problem-spring-web/README.md index 66444dad..1d83ce67 100644 --- a/problem-spring-web/README.md +++ b/problem-spring-web/README.md @@ -94,6 +94,16 @@ spring: throw-exception-if-no-handler-found: true ``` +Please note this will work in spring boot version less 2.4 if version >=2.4 use below configuration +```yaml +spring: + web: + resources: + add-mappings: false + mvc: + throw-exception-if-no-handler-found: true +``` + If you're using Spring Boot, make sure you disable the `ErrorMvcAutoConfiguration`: ```java