Class 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 Detail

      • ManagementErrorEndpoint

        public ManagementErrorEndpoint​(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
    • Method Detail

      • invoke

        @RequestMapping("${server.error.path:${error.path:/error}}")
        @ResponseBody
        public Map<String,​Objectinvoke​(org.springframework.web.context.request.ServletWebRequest request)