code: < /p>
Код: Выделить всё
private static final String FILE1 = "\\src\\main\\webapp\\WEB-INF\\external\\file1.csv";
private static final String FILE2 = "\\src\\main\\webapp\\WEB-INF\\external\\file2.csv";
private static String currentDirectory = Paths.get(".").toAbsolutePath().toString();
private static String completeAbsolutePath = currentDirectory
.substring(0, currentDir.length() - 1)
.replace("\\", "\\\\");
reader = new CSVReader(new FileReader(completePath + FILE1))
java.io.FileNotFoundException:
c:\delete\src\main\webapp\WEB-INF\external\File1.csv
Can someone one please help?
Подробнее здесь: https://stackoverflow.com/questions/463 ... g-boot-jar