cronexpression 을 작성하고 이제 맞는지 테스트 하기~
String expression = "0 0 2-4/2 * * ?"; CronExpression cronExpression = new CronExpression(expression); Date nextExecuteDate1 = cronExpression.getNextValidTimeAfter(new Date()); Date nextExecuteDate2 = cronExpression.getNextValidTimeAfter(nextExecuteDate1); System.out.println(nextExecuteDate1); System.out.println(nextExecuteDate2);