We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the readme file, section configuration, it is documented which Spring Boot properties need to be set to make the NoHandlerFoundAdviceTrait work:
NoHandlerFoundAdviceTrait
spring: resources: add-mappings: false mvc: throw-exception-if-no-handler-found: true
Starting with Spring Boot 2.4.0, spring.resources.* properties were moved to spring.web.resources.*: spring-projects/spring-boot#23917
spring.resources.*
spring.web.resources.*
The documentation should be updated to reflect this change (ideally mention different properties based on Spring boot versions).
I ran into this issue when upgrading Spring boot. Moving the property to spring.web.resources.add-mappings made NoHandlerFoundAdviceTrait work again.
spring.web.resources.add-mappings
I double checked this with the reference documentation:
spring.resources.add-mappings
Update documentation to mention that Spring boot >= 2.4.0 requires these properties:
spring: web: resources: add-mappings: false mvc: throw-exception-if-no-handler-found: true
I am happy to help here and make a PR if this is fine (first time contributer here 👋).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
In the readme file, section configuration, it is documented which Spring Boot properties need to be set to make the
NoHandlerFoundAdviceTrait
work:Starting with Spring Boot 2.4.0,
spring.resources.*
properties were moved tospring.web.resources.*
: spring-projects/spring-boot#23917The documentation should be updated to reflect this change (ideally mention different properties based on Spring boot versions).
I ran into this issue when upgrading Spring boot. Moving the property to
spring.web.resources.add-mappings
madeNoHandlerFoundAdviceTrait
work again.I double checked this with the reference documentation:
spring.resources.add-mappings
spring.web.resources.add-mappings
Possible Fix
Update documentation to mention that Spring boot >= 2.4.0 requires these properties:
I am happy to help here and make a PR if this is fine (first time contributer here 👋).
The text was updated successfully, but these errors were encountered: