@Controller
@ConditionalOnWebApplication
@RequestMapping(value="${error.path:/error}")
public class CustomErrorController
extends BaseController
implements org.springframework.boot.autoconfigure.web.ErrorController
BASE_NAME, ID_URI, logger, request| 构造器和说明 |
|---|
CustomErrorController() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.ResponseEntity<java.lang.Object> |
error(javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity<java.lang.Object> |
errorPlain(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
getErrorPath() |
equalsVersion, getDefaultPageable, getDefaultPageable, getDeviceInfo, getOldModel, getRealPath, getText, getTextDefaultNull, getUserAgent, hasParameter, hasParameterKey, setRelatedPropertycacheControl, created, getBaseLinkBuilder, getId, getPersistentEntity, noCache, noCache, noContent, ok, prepareHeaders, updatedpublic java.lang.String getErrorPath()
getErrorPath 在接口中 org.springframework.boot.autoconfigure.web.ErrorController@RequestMapping(produces={"text/plain","text/html"})
@ResponseBody
public org.springframework.http.ResponseEntity<java.lang.Object> errorPlain(javax.servlet.http.HttpServletRequest request)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException@RequestMapping
@ResponseBody
public org.springframework.http.ResponseEntity<java.lang.Object> error(javax.servlet.http.HttpServletRequest request)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingException