public class TestJob {
public void test() {
System.out.println("执行TestJob的test");
}
}
public class TestJob2 {
public void test() {
System.out.println("执行TestJob2的test");
}
}
Configuration
For the Maven project, first put the cron.setting file under src/main/resources/config (the file in this path by default), and then put the timing rules in the file. The configuration file code is as follows: