Class ErrorController

java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController
org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController
net.mingsoft.basic.exception.ErrorController
All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorController

@Controller @RequestMapping(value="${server.error.path:${error.path:/error}}", method={GET,POST}) public class ErrorController extends org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController
Author:
by 铭软开发团队
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Map<String,Object>>
    error(jakarta.servlet.http.HttpServletRequest request)
     
    org.springframework.web.servlet.ModelAndView
    errorHtml(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     

    Methods inherited from class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController

    getErrorAttributeOptions, getErrorProperties, isIncludeBindingErrors, isIncludeMessage, isIncludePath, isIncludeStackTrace, mediaTypeNotAcceptable

    Methods inherited from class org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController

    getBooleanParameter, getErrorAttributes, getErrorsParameter, getMessageParameter, getPathParameter, getStatus, getTraceParameter, resolveErrorView

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected final org.slf4j.Logger LOG
  • Constructor Details

    • ErrorController

      public ErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
  • Method Details

    • errorHtml

      public org.springframework.web.servlet.ModelAndView errorHtml(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Overrides:
      errorHtml in class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController
    • error

      public org.springframework.http.ResponseEntity<Map<String,Object>> error(jakarta.servlet.http.HttpServletRequest request)
      Overrides:
      error in class org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController