I have a spring boot application that run on jetty server. the requirement is to customize the 404 and other errors with our own messages. After searching for a while got to a point that we can do it by a custom class by extending the ErrorHandler
class of jetty package and override the method getErrorPage(HttpServletRequest request)
.
doubt: was not able to figure out how to configure this customized class in spring boot application to over ride the default ErrorHandler class. Is there a way to inject this custom class?
Any help/suggestion would be really helpful.