Class ManagementErrorEndpoint
java.lang.Object
org.springframework.boot.actuate.autoconfigure.web.servlet.ManagementErrorEndpoint
@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
- Author:
- Dave Syer, Scott Frederick, Moritz Halbritter
-
Constructor Summary
ConstructorDescriptionManagementErrorEndpoint
(ErrorAttributes errorAttributes, ErrorProperties errorProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
getBooleanParameter
(ServletWebRequest request, String parameterName) invoke
(ServletWebRequest request)
-
Constructor Details
-
ManagementErrorEndpoint
-
-
Method Details
-
invoke
@RequestMapping("${server.error.path:${error.path:/error}}") @ResponseBody public Map<String,Object> invoke(ServletWebRequest request) -
getBooleanParameter
-