diff --git a/pom.xml b/pom.xml
index 982a8de..1e922bd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,10 +30,6 @@
21
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
org.springframework.boot
spring-boot-starter-data-rest
@@ -58,6 +54,10 @@
spring-boot-starter-test
test
+
+ org.springframework.boot
+ spring-boot-starter-data-jdbc
+
diff --git a/src/main/java/com/guams/review/ReViewApplication.java b/src/main/java/com/guams/review/ReViewApplication.java
index 7f0787d..496fcac 100644
--- a/src/main/java/com/guams/review/ReViewApplication.java
+++ b/src/main/java/com/guams/review/ReViewApplication.java
@@ -1,7 +1,5 @@
package com.guams.review;
-import com.guams.review.modele.Post;
-import com.guams.review.modele.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
diff --git a/src/main/java/com/guams/review/configuration/Advice.java b/src/main/java/com/guams/review/configuration/Advice.java
new file mode 100644
index 0000000..e835bbd
--- /dev/null
+++ b/src/main/java/com/guams/review/configuration/Advice.java
@@ -0,0 +1,16 @@
+package com.guams.review.configuration;
+
+import com.guams.review.exception.NotFoundException;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.bind.annotation.ExceptionHandler;
+
+@ControllerAdvice
+public class Advice {
+
+ @ExceptionHandler(value = NotFoundException.class)
+ public ResponseEntity