Skip to content

Read spring.mvc.throw-exception-if-no-handler-found property [SPR-15981] #20531

@spring-projects-issues

Description

@spring-projects-issues

Alex Rader opened SPR-15981 and commented

At the moment we need to write

.addDispatcherServletCustomizer(dispatcherServlet -> {
    dispatcherServlet.setThrowExceptionIfNoHandlerFound(true);
})

But I already have in Properties

spring.mvc.throw-exception-if-no-handler-found=true

It works in Spring Boot, but doesn't work in tests using MockMvc


No further details from SPR-15981

Metadata

Metadata

Assignees

Labels

in: testIssues in the test module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions