title: No idea how to read a file in a Docker and spring boot based application
body: <p>Facing FileNotFoundException while loading a JSON file which is in /apps/authentication/users.json in docker containers, it is Spring-Boot application. This JSON file is available in /apps/authentication/users.json folder . No idea how to read a file using Docker. Please help.</p>
  
  <p>Trying with below piece of code :</p>
  
  <pre><code>    List&lt;User&gt; user = null;
      ObjectMapper mapper = new ObjectMapper();
      mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
      TypeReference&lt;List&lt;User&gt;&gt; userMapType = new TypeReference&lt;List&lt;User&gt;&gt;() {};
  
      InputStream userIs = TypeReference.class.getResourceAsStream("file:///apps/authentication/users.json");
      try {
          user = mapper.readValue(userIs, userMapType);
          log.info("Dummy User Object is created successfully picked from the location : "+dummyUserConfig.getLocation());
      } catch (IOException e) {
          System.out.println(e.getMessage());
      }
      finally{
          if(null != userIs) {
              try {
                  userIs.close();
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
      }
  </code></pre>
  
  <p>userIs object is null. I already tried lots of combinations of path "file:///apps/authentication/users.json" .</p>
  
  <p>I googled the same and found Docker's volume may be used here. Please guide me </p>