<dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.1</version> </dependency> <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz-jobs</artifactId> <version>2.2.1</version> </dependency>
//应该是只用到了一个auartz....复制来的 也没去仔细查看 反正现在好使了
boolean validExpression = CronExpression.isValidExpression(cron);