java 程序後臺自啓動

public void run(ApplicationArguments var1) throws Exception{ while (true){ //無限循環 pingIp(); Thread.currentThread().sleep(1000);//毫秒 暫停1秒後重復循環 避免併發 } }
相關文章
相關標籤/搜索