title: firebase and spring boot configuration
body: <p>How to fix that error?
  Exception in thread &quot;main&quot; java.io.FileNotFoundException: E:\n\demo%20(1)\demo\target\classes\serviceAccountKey.json (The system cannot find the path specified)</p>
  <pre><code>    File file = new File(Objects.requireNonNull(classLoader.getResource(&quot;serviceAccountKey.json&quot;)).getFile());
      FirebaseOptions options;
      try (FileInputStream serviceAccount = new FileInputStream(file.getAbsolutePath())) {
  
          options = new Builder()
                  .setCredentials(GoogleCredentials.fromStream(serviceAccount))
                  .setDatabaseUrl(&quot;https://springboot-c7d7e-default-rtdb.firebaseio.com&quot;)
                  .build();
      }
  </code></pre>