Fix server.error.path reference in error controller

This commit is contained in:
Dave Syer 2015-11-30 14:20:37 +00:00
parent 1ec40ed666
commit 6ec767437a
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public class ManagementErrorEndpoint {
this.errorAttributes = errorAttributes; this.errorAttributes = errorAttributes;
} }
@RequestMapping("${server.path:/error}") @RequestMapping("${server.error.path:${error.path:/error}}")
@ResponseBody @ResponseBody
public Map<String, Object> invoke() { public Map<String, Object> invoke() {
return this.errorAttributes.getErrorAttributes( return this.errorAttributes.getErrorAttributes(