Skip to content

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

Closed
@deki

Description

@deki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions