diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherApplicationRunner.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherApplicationRunner.java index 32520c14db44..1c72ada92011 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherApplicationRunner.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherApplicationRunner.java @@ -57,9 +57,9 @@ import org.springframework.util.StringUtils; /** - * {@link ApplicationRunner} to {@link JobLauncher launch} Spring Batch jobs. Runs all - * jobs in the surrounding context by default. Can also be used to launch a specific job - * by providing a jobName + * {@link ApplicationRunner} to {@link JobLauncher launch} Spring Batch jobs. + * If a single job is found in the context, it will be executed by default. + * If multiple jobs are found, launch a specific job by providing a jobName * * @author Dave Syer * @author Jean-Pierre Bergamin