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

View File

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