There was an error while loading. Please reload this page.
1 parent a81dab1 commit fc9a563Copy full SHA for fc9a563
1 file changed
src/main/java/ita/tinybite/global/config/FcmConfig.java
@@ -15,6 +15,7 @@
15
16
import jakarta.annotation.PostConstruct;
17
import lombok.extern.slf4j.Slf4j;
18
+import org.springframework.core.io.FileSystemResource;
19
20
@Slf4j
21
@Configuration
@@ -30,7 +31,7 @@ public void initialize() {
30
31
return;
32
}
33
try {
- ClassPathResource resource = new ClassPathResource(fcmConfigPath);
34
+ FileSystemResource resource = new FileSystemResource(fcmConfigPath);
35
try (InputStream stream = resource.getInputStream()) {
36
FirebaseOptions options = FirebaseOptions.builder()
37
.setCredentials(GoogleCredentials.fromStream(stream))
0 commit comments