Skip to content

Commit

Permalink
Fix typo (eugenp#4897)
Browse files Browse the repository at this point in the history
* add new module

* fix typo
  • Loading branch information
lor6 authored and pivovarit committed Aug 5, 2018
1 parent 4175061 commit be115a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public MyCustomErrorController() {

@GetMapping(value = PATH)
public String error() {
return "Error heaven";
return "Error haven";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ String error400() {
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!!!";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void customize(ConfigurableServletWebServerFactory container) {
container.setContextPath("/springbootapp");

container.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400"));
container.addErrorPages(new ErrorPage("/errorHeaven"));
container.addErrorPages(new ErrorPage("/errorHaven"));
}

}

0 comments on commit be115a0

Please sign in to comment.