I imported a project from a Git repository and added Maven nature to it in Eclipse. In the resources folder, I added a configuration file called myconf.properties. Now, whenever I try to open this file from my Java code, I get FileNotFoundException. The file is also present in the target/classes folder generated after maven compiles the project.
Can anyone tell me what can be the problem? My Java code that tries to load this file is:
props.load(new FileInputStream("myconf.properties"));
where props is a Properties object.
Can anyone give me some hints on how to solve this issue?
 
     
     
     
     
     
     
     
    