I have a question about file location. when I give physical location (for example c:\test\file.txt) for my file path on my local machine. The file can be found and read.
My question is: does it work in DEV or PROD environment? if not, what is the correct path I should give?
Hong Yi wrote:My question is: does it work in DEV or PROD environment?
If you have your files stored in a known location like /mine/properties, this does work. An alternative is to add the directory to your classpath and let Java read them as a resource. If your files are under a server, you have to do this.