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 3131 SPOTIFY_CLIENT_SECRET : ${{ secrets.SPOTIFY_CLIENT_SECRET }}
3232
3333 KOPIST_API_KEY : ${{ secrets.KOPIST_API_KEY }}
34+ TMAP_API_KEY : ${{ secrets.TMAP_API_KEY }}
35+ KAKAOMAP_API_KEY : ${{ secrets.KAKAOMAP_API_KEY }}
36+
37+
3438
3539 steps :
3640 - name : Checkout
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 @@ -42,4 +42,6 @@ tmap: #Tmap 대중교통 추천 api 키
4242 api-key : ${TMAP_API_KEY}
4343
4444kakao : # Kakao map REST API 키
45- restapi-key : ${KAKAOMAP_API_KEY}
45+ restapi-key : ${KAKAOMAP_API_KEY}
46+ kopis :
47+ api-key : ${KOPIST_API_KEY}
You can’t perform that action at this time.
0 commit comments