表达式
cron ="0 0 0 28-31 * ? " (28,29,30,31日的意思)
Calendar c = Calendar.getInstance();
//判断执行日期是否为当前月最后一天
if (c.get(Calendar.DATE) == c.getActualMaximum(Calendar.DATE)) {
//处理业务
}
表达式
cron ="0 0 0 28-31 * ? " (28,29,30,31日的意思)
Calendar c = Calendar.getInstance();
//判断执行日期是否为当前月最后一天
if (c.get(Calendar.DATE) == c.getActualMaximum(Calendar.DATE)) {
//处理业务
}