Skip to content

Commit dac8c9e

Browse files
committed
Fixed code examples in reference documentation
Issue: SPR-10474
1 parent 03585f2 commit dac8c9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/reference/docbook/scheduling.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,11 @@ public class TaskExecutorExample {
311311
<para>Spring provides two implementations of the
312312
<interfacename>Trigger</interfacename> interface. The most interesting
313313
one is the <classname>CronTrigger</classname>. It enables the scheduling
314-
of tasks based on cron expressions. For example the following task is
314+
of tasks based on cron expressions. For example, the following task is
315315
being scheduled to run 15 minutes past each hour but only during the
316316
9-to-5 "business hours" on weekdays.</para>
317317

318-
<programlisting language="java">scheduler.schedule(task, new CronTrigger("* 15 9-17 * * MON-FRI"));</programlisting>
318+
<programlisting language="java">scheduler.schedule(task, new CronTrigger("0 15 9-17 * * MON-FRI"));</programlisting>
319319

320320
<para>The other out-of-the-box implementation is a
321321
<classname>PeriodicTrigger</classname> that accepts a fixed period, an
@@ -331,7 +331,7 @@ public class TaskExecutorExample {
331331
custom trigger implementations to be used interchangeably. Such a
332332
component could take advantage of dependency injection so that such
333333
<interfacename>Triggers</interfacename> could be configured
334-
externally.</para>
334+
externally and therefore easily modified or extended.</para>
335335
</section>
336336

337337
<section xml:id="scheduling-task-scheduler-implementations">

src/reference/docbook/spring.tld.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@
772772
<tbody>
773773
<row>
774774
<entry>
775-
<para>url</para>
775+
<para>value</para>
776776
</entry>
777777
<entry>
778778
<para>true</para>

0 commit comments

Comments
 (0)