Improved handling of 404 errors

Instead of shipping an `error/404.html` template, added a `@ControllerAdvice` that handles `DbAdminNotFoundException`.
This way, we only show our error page for exceptions that are thrown inside our controller's methods, and don't interfere
with the 404 settings for the other routes defined by the user.
This commit is contained in:
Francesco
2023-10-09 17:28:55 +02:00
parent 0b1b394144
commit 9bd896e5c7
5 changed files with 34 additions and 5 deletions