I'm setting up logic to write string to an html file
I tried reading details.html file placed in \src\main\resources\static\
File htmlTemplateFile = new File("details.html");
OR
File htmlTemplateFile = new File("\src\main\resources\static\details.html");
When I run this code, I am getting file not found exception , although the file is placed in \src\main\resources\static\
I have tried both above mentioned alternatives, still file not found exception is being thrown.
ERROR : msgjava.io.FileNotFoundException: File 'details.html' does not exist