I have a project generated with jHipster. Trying to open file on server for reading.

private static final String FILEIN_NAME = "classpath:file1.xls"; .... FileInputStream file = new FileInputStream(FILEIN_NAME)) 

The file is located in the src / main / resources directory. I get the error that the file was not found. How to set the path and where to put the user files? Tried to put in the src / main / webapp directory. The situation is the same.

0