Skip to content

Commit be115a0

Browse files
lor6pivovarit
authored andcommitted
Fix typo (eugenp#4897)
* add new module * fix typo
1 parent 4175061 commit be115a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spring-boot/src/main/java/org/baeldung/common/error/MyCustomErrorController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public MyCustomErrorController() {
1313

1414
@GetMapping(value = PATH)
1515
public String error() {
16-
return "Error heaven";
16+
return "Error haven";
1717
}
1818

1919
@Override

spring-boot/src/main/java/org/baeldung/common/error/controller/ErrorController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ String error400() {
1414
return "Error Code: 400 occured.";
1515
}
1616

17-
@GetMapping("/errorHeaven")
17+
@GetMapping("/errorHaven")
1818
String errorHeaven() {
19-
return "You have reached the heaven of errors!!!";
19+
return "You have reached the haven of errors!!!";
2020
}
2121

2222
}

spring-boot/src/main/java/org/baeldung/common/properties/MyServletContainerCustomizationBean.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void customize(ConfigurableServletWebServerFactory container) {
1919
container.setContextPath("/springbootapp");
2020

2121
container.addErrorPages(new ErrorPage(HttpStatus.BAD_REQUEST, "/400"));
22-
container.addErrorPages(new ErrorPage("/errorHeaven"));
22+
container.addErrorPages(new ErrorPage("/errorHaven"));
2323
}
2424

2525
}

0 commit comments

Comments
 (0)