diff --git a/src/main/java/codesquad/fineants/domain/kis/service/KisService.java b/src/main/java/codesquad/fineants/domain/kis/service/KisService.java index 9596b52c0..1cfa570f8 100644 --- a/src/main/java/codesquad/fineants/domain/kis/service/KisService.java +++ b/src/main/java/codesquad/fineants/domain/kis/service/KisService.java @@ -16,7 +16,6 @@ import org.springframework.context.annotation.Profile; import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.security.access.annotation.Secured; import org.springframework.stereotype.Service; import codesquad.fineants.domain.holding.repository.PortfolioHoldingRepository; @@ -83,7 +82,6 @@ public List refreshAllStockCurrentPrice() { } // 주식 현재가 갱신 - @Secured(value = {"ROLE_USER", "ROLE_MANAGER", "ROLE_ADMIN"}) public List refreshStockCurrentPrice(List tickerSymbols) { List> futures = tickerSymbols.stream() .map(this::submitCurrentPriceFuture) @@ -135,7 +133,6 @@ private Runnable createCurrentPriceRunnable(String tickerSymbol, CompletableFutu }; } - @Secured(value = {"ROLE_MANAGER", "ROLE_ADMIN"}) public Mono fetchCurrentPrice(String tickerSymbol) { return kisClient.fetchCurrentPrice(tickerSymbol, manager.createAuthorization()); } @@ -151,14 +148,12 @@ public void refreshClosingPrice() { } // 종목 종가 모두 갱신 - @Secured(value = {"ROLE_MANAGER", "ROLE_ADMIN"}) public List refreshAllLastDayClosingPrice() { List tickerSymbols = portFolioHoldingRepository.findAllTickerSymbol(); return refreshLastDayClosingPrice(tickerSymbols); } // 종목 종가 일부 갱신 - @Secured(value = {"ROLE_USER", "ROLE_MANAGER", "ROLE_ADMIN"}) public List refreshLastDayClosingPrice(List tickerSymbols) { List lastDayClosingPrices = readLastDayClosingPriceResponses(tickerSymbols); lastDayClosingPrices.forEach(closingPriceRepository::addPrice); diff --git a/src/main/resources/application-production.yml b/src/main/resources/application-production.yml index 5e7efae4f..b98d32ef5 100644 --- a/src/main/resources/application-production.yml +++ b/src/main/resources/application-production.yml @@ -1,9 +1,9 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: ${db.dev.datasource.url} - username: ${db.dev.datasource.username} - password: ${db.dev.datasource.password} + url: ${db.production.datasource.url} + username: ${db.production.datasource.username} + password: ${db.production.datasource.password} jpa: database: mysql database-platform: org.hibernate.dialect.MySQL8Dialect