@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.Constructor and Description |
---|
ManagementErrorEndpoint(ErrorAttributes errorAttributes) |
public ManagementErrorEndpoint(ErrorAttributes errorAttributes)
@RequestMapping(value="${server.error.path:${error.path:/error}}") @ResponseBody public Map<String,Object> invoke(ServletWebRequest request)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.