* add new module

* fix typo
This commit is contained in:
Loredana Crusoveanu 2018-08-05 13:10:06 +03:00 committed by Grzegorz Piwowarek
parent 4175061434
commit be115a073c
3 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ public class MyCustomErrorController implements ErrorController {
@GetMapping(value = PATH)
public String error() {
return "Error heaven";
return "Error haven";
}
@Override

View File

@ -14,9 +14,9 @@ public class ErrorController {
return "Error Code: 400 occured.";
}
@GetMapping("/errorHeaven")
@GetMapping("/errorHaven")
String errorHeaven() {
return "You have reached the heaven of errors!!!";
return "You have reached the haven of errors!!!";
}
}

View File

@ -19,7 +19,7 @@ public class MyServletContainerCustomizationBean implements WebServerFactoryCust
container.setContextPath("/springbootapp");
container.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400"));
container.addErrorPages(new ErrorPage("/errorHeaven"));
container.addErrorPages(new ErrorPage("/errorHaven"));
}
}