随笔分类 -  定时器

摘要:import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.context 阅读全文
posted @ 2021-09-06 00:12 tonggc1668 阅读(266) 评论(0) 推荐(0)
摘要:/** * Copyright 2009-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f 阅读全文
posted @ 2020-11-11 15:20 tonggc1668 阅读(190) 评论(0) 推荐(0)
摘要:spring.main.allow-bean-definition-overriding: trueserver: port: 8080spring.devtools: add-properties: false livereload: enabled: false#spring cron expr 阅读全文
posted @ 2020-11-11 15:18 tonggc1668 阅读(684) 评论(0) 推荐(0)
摘要:Spring : @EnableScheduling 的工作原理 https://blog.csdn.net/andy_zhang2007/article/details/96612243 spring task 通过@EnableScheduling启动流程简析 https://blog.csdn 阅读全文
posted @ 2020-11-11 15:12 tonggc1668 阅读(879) 评论(0) 推荐(0)
摘要:Spring Boot集成Spring Scheduler和Quartz Scheduler https://blog.51cto.com/7308310/2464491 Scheduling Tasks https://spring.io/guides/gs/scheduling-tasks/ S 阅读全文
posted @ 2020-10-28 18:30 tonggc1668 阅读(496) 评论(0) 推荐(0)
摘要:package com.zhy.concurrency.timer; import java.util.Date; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorSer... 阅读全文
posted @ 2018-07-12 14:27 tonggc1668 阅读(109) 评论(0) 推荐(0)
摘要:package org.apache.storm.metric.internal; import java.util.Timer; /** * Just holds a singleton metric/stat timer for use by metric/stat calculations * 阅读全文
posted @ 2018-05-15 18:02 tonggc1668 阅读(116) 评论(0) 推荐(0)
摘要:package com.example.mail; import java.time.Instant; import java.util.Date; import java.util.Timer; import java.util.TimerTask; public class TestTimer { public static void main(String[] args) { ... 阅读全文
posted @ 2018-05-15 10:58 tonggc1668 阅读(145) 评论(0) 推荐(0)
摘要:或者用@Scheduled注解 阅读全文
posted @ 2017-05-12 12:07 tonggc1668 阅读(223) 评论(0) 推荐(0)
摘要:... 阅读全文
posted @ 2017-03-09 13:31 tonggc1668 阅读(251) 评论(0) 推荐(0)