Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SpringBootApplication
- @EnableScheduling
- @Import({SecurityConfig.class})
- public class BlogsApplication implements CommandLineRunner {
- ..
- }
- @Component
- public class UptadeCurrencyJob1 {
- @Scheduled(cron = "0 0/10 1 * * ?")
- public void reportCurrentTime() throws IOException {
- System.out.println("UptadeCurrencyJob1");
- }
- }
Add Comment
Please, Sign In to add comment