This is meant to be an extensive canonical question & answer post for these types of questions.
I\'m trying to write a Spring MVC web applicati
Updating from Spring version 3 to Spring version 5, produces the same error. All answers were satisfied already in my code. Adding the annotation @ControllerAdvice solved the problem for me.
@ControllerAdvice