I am trying to read a property file from a spring boot project
InputStream in = new FileInputStream(ResourceUtils.getFile("classpath:myspecialconfig.properties"));
This file is present in main/resources. So in effect reaches BOOT-INF\classes
But I get the error
class path resource [myspecialconfig.properties] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:myjar.jar!/BOOT-INF/classes!/myspecialconfig.properties