@@ -0,0 +1,1807 @@
+package org.treeleaf.web.spring.resovler;%0A%0Aimport org.apache.commons.lang3.StringUtils;%0Aimport org.springframework.web.servlet.ModelAndView;%0Aimport org.springframework.web.servlet.view.RedirectView;%0Aimport org.treeleaf.common.exception.BaseException;%0Aimport org.treeleaf.common.http.HttpUtils;%0Aimport org.treeleaf.web.spring.CommonConstant;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * @Author leaf%0A * 2015/7/20 0020 0:13.%0A */%0Apublic class HtmlRedircetExceptionExtHandler  extends AbstractBaseExceptionExtHandler %7B%0A%0A%0A    /**%0A     * %E5%BD%93%E5%8F%91%E7%94%9F%E5%BC%82%E5%B8%B8%E6%97%B6%E9%BB%98%E8%AE%A4%E7%9A%84%E6%B8%B2%E6%9F%93%E8%A7%86%E5%9B%BE%0A     */%0A    private String defaultErrorView = CommonConstant.DEFAULT_ERROR_VIEW_NAME;%0A%0A    private String defaultErrorMsg;%0A%0A    @Override%0A    public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) %7B%0A%0A        Map%3CString, String%3E paramMap = new HashMap%3CString, String%3E();%0A%0A        if (ex instanceof BaseException) %7B%0A            paramMap.put(%22msg%22, ex.getMessage());%0A        %7D else %7B%0A            paramMap.put(%22msg%22, defaultErrorMsg);%0A        %7D%0A%0A%0A        String param = HttpUtils.paramUrlEncode2String(paramMap);%0A        StringBuilder stringBuilder = new StringBuilder(defaultErrorView);%0A        if (StringUtils.isNotBlank(param)) %7B%0A            stringBuilder.append('?');%0A            stringBuilder.append(param);%0A        %7D%0A        ModelAndView mav = new ModelAndView();%0A        mav.setView(new RedirectView(stringBuilder.toString()));%0A        return mav;%0A    %7D%0A%0A%0A    public void setDefaultErrorMsg(String defaultErrorMsg) %7B%0A        this.defaultErrorMsg = defaultErrorMsg;%0A    %7D%0A%0A    public void setDefaultErrorView(String defaultErrorView) %7B%0A        this.defaultErrorView = defaultErrorView;%0A    %7D%0A%7D%0A

添加静态页面redirect的错误信息展示.