ErrorController not called for non existing APIs after upgrade to Spring Boot 3.3.3(from 2.7.0) #44150
Labels
for: stackoverflow
A question that's better suited to stackoverflow.com
status: invalid
An issue that we don't feel is valid
Uh oh!
There was an error while loading. Please reload this page.
Issue: ErrorController Not Called After Upgrading to Spring Boot 3.3.3
Hello everyone, this is my first time raising an issue, so please be patient with me.
Problem Description
After upgrading from Spring Boot
2.7.0
to3.3.3
, theErrorController
implementation is no longer called for non-existing APIs.This worked fine in Spring Boot
2.7.0
.Reproduction
I have attached two demos that reproduce this issue.
You can run the test and see in the
3.3.3
version that the non-existing API returns 404 NOT FOUND instead of calling the ErrorController.demo-spring-boot-2.7.0.zip
demo-spring-boot-3.3.3.zip
Could you investigate what is the source of this behaviour?
Thanks ☮
The text was updated successfully, but these errors were encountered: