Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.back.web7_9_codecrete_be.domain.concerts.repository.ConcertRepository;
import com.back.web7_9_codecrete_be.domain.concerts.repository.TicketOfficeRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.EnableScheduling;
Expand All @@ -38,7 +39,8 @@ public class KopisApiService {
private final TicketOfficeRepository ticketOfficeRepository;

//TODO : API key 환경변수로 가져오기
private String serviceKey = "";
@Value("${kopis.api-key}")
private String serviceKey;
private LocalDate sdate = LocalDate.of(2025, 12, 1);
private LocalDate edate = LocalDate.now().plusMonths(6);

Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jwt:
secret: ${SECRET_KEY}
access-token-expiration: 3600 # 1시간
refresh-token-expiration: 1209600 # 14일

kopis:
api-key: ${KOPIST_API_KEY}