Skip to content

Commit 9daadcd

Browse files
authored
Merge pull request #79 from prgrms-web-devcourse-final-project/feat/mission
fix : 제미나이
2 parents 875ccb1 + 1006ea5 commit 9daadcd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/main/java/com/back/BackApplication.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
@EnableCaching
1414
@EnableAsync
1515
public class BackApplication {
16-
1716
@Value("${GOOGLE_APPLICATION_CREDENTIALS}")
1817
private String googleCredentialsPath;
1918

@@ -23,8 +22,7 @@ public static void main(String[] args) {
2322

2423
@PostConstruct
2524
public void setGoogleCredentialsEnv() {
26-
// 구글 SDK가 인식할 수 있도록 시스템 속성에 넣어줌
25+
// Google SDK가 사용할 수 있도록 환경변수 세팅
2726
System.setProperty("GOOGLE_APPLICATION_CREDENTIALS", googleCredentialsPath);
2827
}
29-
3028
}

backend/src/main/resources/application.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ management:
105105
enabled: true # /actuator/health/{liveness,readiness} 활성화
106106
show-details: never # 프로브 용도면 never 권장(민감정보 차단)
107107
custom:
108+
google:
109+
credentials: ${GOOGLE_APPLICATION_CREDENTIALS}
108110
dev:
109111
cookieDomain: localhost
110112
frontUrl: http://${custom.dev.cookieDomain}:3000

0 commit comments

Comments
 (0)