diff --git a/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java b/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java index 952a2c6..9e2f450 100644 --- a/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java +++ b/src/main/java/hsu/umc/server/service/SchedulerServiceImpl.java @@ -23,7 +23,7 @@ public class SchedulerServiceImpl implements SchedulerService{ private final PhotoRepository photoRepository; private final UuidRepository uuidRepository; private final AmazonS3Manager s3Manager; - @Scheduled(cron = "*/10 * * * * *", zone = "Asia/Seoul") + @Scheduled(cron = "0 0 18 * * *", zone = "Asia/Seoul") @Transactional public void deletePhoto() { log.info("deletePhoto () : call"); diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index e727e3a..9af1ed2 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -7,7 +7,7 @@ spring: jpa: hibernate: - ddl-auto: update + ddl-auto: create-drop web: cors: @@ -20,14 +20,6 @@ spring: multipart: max-file-size: 20MB max-request-size: 20MB - - logging: - level: - root: INFO - org.springframework.web: DEBUG - org.springframework.scheduling: DEBUG - org.apache.coyote: DEBUG - cloud: aws: s3: