private ModelAndView dealResponseModelAndView(String title, String errorMessage, String redirect, String href,
        String buttonText) {
        // If there is redirection information, jump
        if (StringUtils.isNotBlank(redirect)) {
            return new ModelAndView("redirect:" + redirect);
        }
        // Jump to homepage by default
        return new ModelAndView("redirect:/");

        // synchronous request
        //return ModelAndViewUtils.error(title, errorMessage,href,buttonText);
    }
Business abnormality

@param request   request
@param exception exception
@return return
chat2db-server/chat2db-server-web-start/src/main/java/ai/chat2db/server/web/start/exception/EasyControllerExceptionHandler.java