Skip to content

Commit

Permalink
[#23] CrawlingService: 스케줄링 20분으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chaiminwoo0223 committed Jun 4, 2024
1 parent 658e19c commit 50c85e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/skhu/jijijig/service/CrawlingService.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CrawlingService {
private final CrawlingRepository crawlingRepository;
private final ApplicationContext applicationContext;

@Scheduled(fixedRate = 600000) // 10분
@Scheduled(fixedRate = 1200000) // 20분
public void scheduleCrawlingTasks() {
CrawlingService crawlingService = applicationContext.getBean(CrawlingService.class);
crawlingService.performCrawling("https://www.ppomppu.co.kr/zboard/zboard.php?id=ppomppu", "뽐뿌(국내게시판)", "tbody > tr.baseList.bbs_new1");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spring:
jpa:
database: mysql
hibernate:
ddl-auto: update
ddl-auto: create
show-sql: true
properties:
hibernate:
Expand Down

0 comments on commit 50c85e9

Please sign in to comment.