mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-13 07:01:13 +00:00
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:
Reference in New Issue
Block a user