mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:03:22 +08:00
Fix server.error.path reference in error controller
This commit is contained in:
parent
1ec40ed666
commit
6ec767437a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user