Skip to content
New issue

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

Spring throwExceptionIfNoHandlerFound is true by default as of Spring 6.1.x #690

Closed
deki opened this issue Nov 24, 2023 · 0 comments · Fixed by #691
Closed

Spring throwExceptionIfNoHandlerFound is true by default as of Spring 6.1.x #690

deki opened this issue Nov 24, 2023 · 0 comments · Fixed by #691

Comments

@deki
Copy link
Collaborator

deki commented Nov 24, 2023

Since Spring 6.1.x the default for throwExceptionIfNoHandlerFound is now true which means a 404 no longer occurs but we'll see an Exception instead.

Currently this results in failed tests for some of the generated archetypes. We have either configure throwExceptionIfNoHandlerFound back to false or change the behavior for 2.0.0. As the property is deprecated, I'd vote to changing the behavior and adding an ExceptionHandler instead.

See also: https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-servlet/sequence.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant