I have a Java Spring project with a file in some package (In project). But when I want to open it,
Tomcat handle it and searching this file in C:\Tools\apache-tomcat-9.0.35\bin
I am getting below exception while getting file by new File("./src\\main\\resources\\directory\\myFile.txt");
Exception
java.io.FileNotFoundException: C:\Tools\apache-tomcat-9.0.35\bin\src\main\resources\directory\myFile.txt