Skip to content

Commit 8a307c1

Browse files
committed
moved new package to existing one
1 parent 684ee60 commit 8a307c1

File tree

7 files changed

+8
-23
lines changed

7 files changed

+8
-23
lines changed

spring-boot-rest/src/main/java/com/baeldung/errorhandling/boot/ErrorHandlingBootApplication.java

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.errorhandling.boot.configurations;
1+
package com.baeldung.web.config;
22

33
import java.util.Map;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.errorhandling.boot.configurations;
1+
package com.baeldung.web.config;
22

33
import java.util.Map;
44

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.errorhandling.boot.web;
1+
package com.baeldung.web.controller;
22

33
import org.springframework.http.ResponseEntity;
44
import org.springframework.web.bind.annotation.GetMapping;
@@ -9,7 +9,7 @@ public class FaultyRestController {
99

1010
@GetMapping("/exception")
1111
public ResponseEntity<Void> requestWithException() {
12-
throw new NullPointerException("Error in the faulty controller!");
12+
throw new RuntimeException("Error in the faulty controller!");
1313
}
1414

1515
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Spring Boot default error handling configurations
2+
#server.error.whitelabel.enabled=false
3+
#server.error.include-stacktrace=always

spring-boot-rest/src/main/resources/errorhandling-application.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

spring-boot-rest/src/test/java/com/baeldung/errorhandling/boot/ErrorHandlingLiveTest.java renamed to spring-boot-rest/src/test/java/com/baeldung/web/error/ErrorHandlingLiveTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.errorhandling.boot;
1+
package com.baeldung.web.error;
22

33
import static io.restassured.RestAssured.given;
44
import static org.assertj.core.api.Assertions.assertThat;

0 commit comments

Comments
 (0)