@Slf4j
@Component
public class RunTesk implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
callBack();
}
private void callBack() throws InterruptedException {
int i = 1;
while (true) {
if (i % 5 == 0) {
Thread.sleep(1000);
System.out.println(LocalDateTime.now()+","+i);
}
i++;
}
}
}

2万+

被折叠的 条评论
为什么被折叠?



