File tree Expand file tree Collapse file tree 6 files changed +22
-26
lines changed Expand file tree Collapse file tree 6 files changed +22
-26
lines changed Original file line number Diff line number Diff line change 1010public class BackApplication {
1111
1212 public static void main (String [] args ) {
13- Dotenv dotenv = Dotenv .load ();
14- System .out .println ("KAKAO_OAUTH2_CLIENT_ID: " + dotenv .get ("KAKAO_OAUTH2_CLIENT_ID" ));
15- System .out .println ("GOOGLE_OAUTH2_CLIENT_ID: " + dotenv .get ("GOOGLE_OAUTH2_CLIENT_ID" ));
16- System .out .println ("NAVER_OAUTH2_CLIENT_ID: " + dotenv .get ("NAVER_OAUTH2_CLIENT_ID" ));
17-
13+ Dotenv .load ();
1814 SpringApplication .run (BackApplication .class , args );
1915 }
2016
Original file line number Diff line number Diff line change 1- package com .back .domain . auth .refreshToken .entity ;
1+ package com .back .global . jwt .refreshToken .entity ;
22
33import lombok .*;
44import org .springframework .data .annotation .Id ;
Original file line number Diff line number Diff line change 1- package com .back .domain . auth .refreshToken .repository ;
1+ package com .back .global . jwt .refreshToken .repository ;
22
3- import com .back .domain .auth .refreshToken .entity .RefreshToken ;
3+
4+ import com .back .global .jwt .refreshToken .entity .RefreshToken ;
45import org .springframework .data .repository .CrudRepository ;
56import org .springframework .stereotype .Repository ;
67
Original file line number Diff line number Diff line change 1- package com .back .domain . auth .refreshToken .service ;
1+ package com .back .global . jwt .refreshToken .service ;
22
3- import com .back .domain .auth .refreshToken .entity .RefreshToken ;
4- import com .back .domain .auth .refreshToken .repository .RefreshTokenRepository ;
3+
4+ import com .back .global .jwt .refreshToken .entity .RefreshToken ;
5+ import com .back .global .jwt .refreshToken .repository .RefreshTokenRepository ;
56import lombok .RequiredArgsConstructor ;
67import org .springframework .beans .factory .annotation .Value ;
78import org .springframework .stereotype .Service ;
Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ spring:
2222 format_sql : true
2323 show_sql : true
2424
25- # 개발 환경 URL 설정
26- FRONTEND_URL : http://localhost:3000
27- BASE_URL : http://localhost:8080
28-
2925# Swagger 설정
3026springdoc :
3127 api-docs :
Original file line number Diff line number Diff line change 55 config :
66 import : optional:file:.env[.properties]
77
8+ data :
9+ redis :
10+ host : ${REDIS_HOST}
11+ port : ${REDIS_PORT}
12+ password : ${REDIS_PASSWORD:}
13+ timeout : 2000ms
14+ lettuce :
15+ pool :
16+ max-active : 8
17+ max-idle : 8
18+ min-idle : 0
19+
820 security :
921 oauth2 :
1022 client :
@@ -53,17 +65,7 @@ server:
5365 enabled : true
5466 force : true
5567
56- data :
57- redis :
58- host : ${REDIS_HOST:localhost}
59- port : ${REDIS_PORT:6379}
60- password : ${REDIS_PASSWORD:}
61- timeout : 2000ms
62- lettuce :
63- pool :
64- max-active : 8
65- max-idle : 8
66- min-idle : 0
68+
6769
6870custom :
6971 jwt :
You can’t perform that action at this time.
0 commit comments