我正在使用cron4j库来安排程序。这里是我的代码: public class Main {
public static void main(String[] args) {
// Declares the file.
File file = new File("cron4j.txt");
// Creates the scheduler.
Schedul
我需要编写一个Java类,它从数据库中获取不同时间,然后在这些时间调用一个函数。时间可以在数据库中改变,并且与Db中的时间相对应的值被作为参数发送给函数。 我需要确保每天在Db中提到的时间发生这种情况。 Scheduler s = new Scheduler();
s.schedule("0 5 * * *", new Runnable() {
public void run