I need to read a MS-Excel (.xlsx) within my Spring MVC app, edit it and send it to the user on demand. Locally on my development station, I use
String path = "c:/dev/workspace/SCF-trend/web/WEB-INF/files/";
File template = new File(path + "trendline-template.xlsx");
But once I deploy this app, I loose the path.
How can I do it so the application understand the path?
I tried to use the ServletContext approach provided as an answer on the following question here, but it didn't work.
Spring MVC Get file under WEB-INF without a request
How can I solve this? Ideas are most welcome!