@Controller public class ManagementErrorEndpoint extends Object
MvcEndpoint
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()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.