diff --git a/src/main/java/fr/eni/enchere/bll/FileService.java b/src/main/java/fr/eni/enchere/bll/FileService.java index f921fb9..3832a2f 100644 --- a/src/main/java/fr/eni/enchere/bll/FileService.java +++ b/src/main/java/fr/eni/enchere/bll/FileService.java @@ -9,7 +9,14 @@ import java.nio.file.Paths; public class FileService { public boolean fileExists(String filePath) { - return Files.exists(Paths.get("src/main/resources/static"+filePath)); + System.out.println("1-" + filePath); + System.out.println("2-" + Files.exists(Paths.get("src/main/resources/static"+filePath))); + System.out.println("3-" + Files.exists(Paths.get(filePath))); + if (Files.exists(Paths.get("src/main/resources/static"+filePath)) || Files.exists(Paths.get(filePath))){ + return true; + }else{ + return false; + } } } diff --git a/src/main/resources/templates/accueil.html b/src/main/resources/templates/accueil.html index 760f8ce..8cdbd19 100644 --- a/src/main/resources/templates/accueil.html +++ b/src/main/resources/templates/accueil.html @@ -119,7 +119,7 @@
- Image de l'article + Image de l'article Image de l'article
@@ -159,7 +159,7 @@
-
:
+