File tree Expand file tree Collapse file tree
java/com/back/web7_9_codecrete_be/domain/concerts/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import com .back .web7_9_codecrete_be .domain .concerts .repository .ConcertRepository ;
1313import com .back .web7_9_codecrete_be .domain .concerts .repository .TicketOfficeRepository ;
1414import lombok .extern .slf4j .Slf4j ;
15+ import org .springframework .beans .factory .annotation .Value ;
1516import org .springframework .http .HttpHeaders ;
1617import org .springframework .http .MediaType ;
1718import org .springframework .scheduling .annotation .EnableScheduling ;
@@ -38,7 +39,8 @@ public class KopisApiService {
3839 private final TicketOfficeRepository ticketOfficeRepository ;
3940
4041 //TODO : API key 환경변수로 가져오기
41- private String serviceKey = "" ;
42+ @ Value ("${kopis.api-key}" )
43+ private String serviceKey ;
4244 private LocalDate sdate = LocalDate .of (2025 , 12 , 1 );
4345 private LocalDate edate = LocalDate .now ().plusMonths (6 );
4446
Original file line number Diff line number Diff line change 3737 secret : ${SECRET_KEY}
3838 access-token-expiration : 3600 # 1시간
3939 refresh-token-expiration : 1209600 # 14일
40+
41+ kopis :
42+ api-key : ${KOPIST_API_KEY}
You can’t perform that action at this time.
0 commit comments