diff --git a/src/main/java/me/liiot/snsserver/config/FirebaseConfig.java b/src/main/java/me/liiot/snsserver/config/FirebaseConfig.java index 8f54228..da2c83a 100644 --- a/src/main/java/me/liiot/snsserver/config/FirebaseConfig.java +++ b/src/main/java/me/liiot/snsserver/config/FirebaseConfig.java @@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.PathResource; import javax.annotation.PostConstruct; import java.io.IOException; @@ -29,7 +30,7 @@ public class FirebaseConfig { @PostConstruct public void initialize() { try { - InputStream serviceAccount = new ClassPathResource(apiKeyPath).getInputStream(); + InputStream serviceAccount = new PathResource(apiKeyPath).getInputStream(); FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount))