Class ManagementErrorEndpoint

java.lang.Object
org.springframework.boot.actuate.autoconfigure.web.servlet.ManagementErrorEndpoint

@Controller public class ManagementErrorEndpoint extends Object
@Controller for handling "/error" path when the management servlet is in a child context. The regular ErrorController should be available there but because of the way the handler mappings are set up it will not be detected.
Since:
2.0.0
  • Constructor Details

    • ManagementErrorEndpoint

      public ManagementErrorEndpoint(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.ErrorProperties errorProperties)
  • Method Details

    • invoke

      @RequestMapping("${server.error.path:${error.path:/error}}") @ResponseBody public Map<String,Object> invoke(org.springframework.web.context.request.ServletWebRequest request)
    • getBooleanParameter

      protected boolean getBooleanParameter(org.springframework.web.context.request.ServletWebRequest request, String parameterName)