Could someone please help. I have read you recommendation but not able to understand that. I have to read one json file in cloudhub.
In my local repositories I have kep
You need to load your application resources from the classpath, not from a path that is related to the original project structure.
Files in src\main\resources
end-up at the root of the classpath in the packaged application. So the following should provide you with the file's content as a stream:
Thread.currentThread().getContextClassLoader().getResourceAsStream("input.json");