Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- fastapi router
- spring dynamic scheduler
- aws mariadb
- msw
- vue composable
- vite이미지캐싱
- aws db 생성
- springboot dynamic scheduler
- threadpooltaskscheduler
- store router
- tiptap custom command
- pinia
- fastapi 라우터
- tiptap
- vue2.7
- tiptap 에디터
- mock service worker
- vite.config.js
- spring 동적 스케줄러
- tiptap vue3
- tiptap slash command
- vue mixin
- 프로필이미지캐싱
- vue3이미지캐싱
- mockserviceworker.js
- vue3
- branch 이름 변경
- vite
- python path
- 파이썬 경로추가
Archives
- Today
- Total
목록spring 동적 스케줄러 (1)
gomstory
Spring Dynamic Scheduler REST API로 스케줄러 구현하기
@Scheduled그동안은 어노테이션 사용해서 cron표현식으로 작성하는 스케줄러만 만들어봤다.Task별로 시간이 다른 스케줄러를 구현할 일이 생겼는데, 그렇다고 1초에 한번씩 돌면서 체크할 일은 아닌거같고..이참에 REST API로 스케줄러를 동적으로 생성하는 기능에 대해 찾아보게되었다. 1. ThreadPoolTaskScheduler를 설정하는 @Configuration 클래스를 생성해준다.import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.scheduling.TaskScheduler;import org.s..
Spring
2024. 8. 27. 12:45