18 lines
360 B
Java
18 lines
360 B
Java
package fr.eni.enchere.bll;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.nio.file.Files;
|
|
import java.nio.file.Paths;
|
|
|
|
@Service
|
|
public class FileService {
|
|
|
|
public boolean fileExists(String filePath) {
|
|
return Files.exists(Paths.get("src/main/resources/static"+filePath));
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// src/main/resources/static/images/articles/12.jpg |