Skip to content

Commit

Permalink
fix: properties mapping 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjiShin committed Jul 18, 2024
1 parent c4c6c4b commit 66d769d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions application/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spring:
- jpa
- ncp
- jwt
- kakao
# swagger를 이용해 API 명세서 생성
doc:
swagger-ui:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
public class OauthRepositoryImpl implements OauthRepository {

// kakao에서 발급 받은 clientID
@Value("${CLIENT_ID}")
@Value("${oauth.clientId}")
private String CLIENT_ID;

@Value("${KAUTH_TOKEN_URL_HOST}")
@Value("${oauth.kauthTokenUrlHost}")
private String KAUTH_TOKEN_URL_HOST;

// 엑세스 토큰으로 카카오에서 유저 정보 받아오기
@Value("${KAUTH_USER_URL_HOST}")
@Value("${oauth.kauthUserUrlHost}")
private String KAUTH_USER_URL_HOST;

@Override
Expand Down
11 changes: 3 additions & 8 deletions infrastructure/jpa/src/main/resources/application-jpa.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring:
datasource:
url: jdbc:mysql://mysql:3306/spot
url: jdbc:mysql://localhost:3306/spot
username: test1234
password: test1234
password: DPM15thspot!
driver-class-name: com.mysql.cj.jdbc.Driver

jpa:
Expand Down Expand Up @@ -32,9 +32,4 @@ decorator:
p6spy:
enable-logging: true

# 필요한 경우 추가 설정

oauth:
clientId: ${CLIENT_ID}
kauthTokenUrlHost: ${KAUTH_TOKEN_URL_HOST}
kauthUserUrlHost: ${KAUTH_USER_URL_HOST}
# 필요한 경우 추가 설정

0 comments on commit 66d769d

Please sign in to comment.