类 BasicErrorController

    • 方法详细资料

      • errorHtml

        @RequestMapping(produces="text/html")
        public org.springframework.web.servlet.ModelAndView errorHtml​(javax.servlet.http.HttpServletRequest request,
                                                                      javax.servlet.http.HttpServletResponse response)
      • error

        @RequestMapping
        @ResponseBody
        public org.springframework.http.ResponseEntity<Map<String,​Object>> error​(javax.servlet.http.HttpServletRequest request)
      • isIncludeStackTrace

        protected boolean isIncludeStackTrace​(javax.servlet.http.HttpServletRequest request,
                                              org.springframework.http.MediaType produces)
        Determine if the stacktrace attribute should be included.
        参数:
        request - the source request
        produces - the media type produced (or MediaType.ALL)
        返回:
        if the stacktrace attribute should be included