Skip to content

Commit

Permalink
feat: 경로 확인
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin3263 committed Jul 18, 2024
1 parent 8de2557 commit 03b110c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ import com.google.auth.oauth2.GoogleCredentials
import com.google.firebase.FirebaseApp
import com.google.firebase.FirebaseOptions
import com.google.firebase.auth.FirebaseAuth
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.io.ClassPathResource

@Configuration
class FirebaseConfig {
private val logger = LoggerFactory.getLogger(FirebaseConfig::class.java)

@Bean
fun firebaseApp(): FirebaseApp {
val resource = ClassPathResource("/google-services.json")
val resource = ClassPathResource("google-services.json")
logger.info("============Loading google-services.json from ${resource.path}")
val serviceAccount = resource.inputStream

val options =
Expand Down

0 comments on commit 03b110c

Please sign in to comment.