我正在尝试使用quartz_jobs.xml 来安排我的所有工作,但以下XML 会导致错误:
cron-expression 元素无效。值 '0 0 23 1/1 * ? *' 根据其数据类型是无效的。
这是 XML:
<?xml version="1.0" encoding="utf-8" ?>
<job-scheduling-data xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_1_8.xsd"
version="1.8">
<schedule>
<job>
<name>AUI</name>
<group>Group1</group>
<description>Archive Unpublished Incidents</description>
<job-class>ArchiveUnpublishedIncidents</job-class>
</job>
<trigger>
<cron>
<name>AUITrigger</name>
<group>TriggerGroup1</group>
<job-name>AUI</job-name>
<job-group>Group1</job-group>
<!-- trigger every night at 11 pm -->
<cron-expression>0 0 23 1/1 * ? *</cron-expression>
</cron>
</trigger>
</schedule>
</job-scheduling-data>
那个 cron 表达式有什么问题?