[Solved] Spring Error: This application has no explicit mapping for /error

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Tue Oct 26 14:38:57 CST 2021
There was an unexpected error (type=Not Found, status=404).
No message available

The reason is that the controller did not add @controller

solution: add @controller

Read More: