Spring 5.0 has built-in API classes such as HandlerExceptionResolver and @AdviceController to handle @Controller exceptions, but this recipe will create another way to manage exceptions through an improvised handler implemented using the AOP paradigm.