java 定时
1.主类下加标签 @EnableScheduling
2.controller建立平级
@Slf4j
@RequiredArgsConstructor
@Component
public class MeetingMarkJob {
final CppccMailService cppccMailService;
//final RemoteMeetingService remoteMeetingService;
final CustomSqlService customSqlService;
/**
* 10分钟刷新一次
* 1s(秒) = 1000
*/
@Scheduled(cron="0 */10 * * * ?")
// @Scheduled(cron="0 */1 * * * ?")
// @Scheduled(initialDelay = 20000, fixedDelay = 600000)
public void timerMeeting(){
}
择善人而交,择善书而读,择善言而听,择善行而从。