일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Collections
- list
- codility
- GOF
- 프로젝트 구조
- pair
- pom.xml
- C++
- spring scheduler
- Spring Boot
- maven
- mybatis
- Spring Mail
- 코딩테스트
- 의존성관리
- 스프링
- Arrays
- 프로그래머스
- Spring
- java
- @Scheduled
- vuejs #vue #js #프론트엔드 #nodejs #클라이언트사이드 #템플릿엔진
- 스프링 스케줄러
- thymeleaf
- HashMap
- springboot
- 스프링 메일
- 스프링부트
- Dependency
- 스프링 부트
- Today
- Total
목록@Scheduled (2)
Rooted In Develop
@Scheduled 사용법에 대해 소스 예제를 들어 설명하겠습니다. 1. @EnableScheduling 추가 1) @SpringBootApplication에 선언 package me.rooted.schedule; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; @EnableScheduling @SpringBootApplication public class SpringSchedulerApplication { public s..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/ct47tm/btqxDvfUrVu/j6pn2y5Baxry9DGT6v3B3K/img.png)
Spring Quartz 없이 간단하게 스케줄러를 사용해보자. 1. @EnableScheduling package me.rooted.mail; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; @EnableScheduling @SpringBootApplication public class SpringMailThymeleafApplication { public static void main(String[] args) { Spr..