public interface CommandLineRunner
SpringApplication
. Multiple CommandLineRunner
beans can be defined
within the same application context and can be ordered using the Ordered
interface or @Order
annotation.
If you need access to ApplicationArguments
instead of the raw String array
consider using ApplicationRunner
.
ApplicationRunner
Modifier and Type | Method and Description |
---|---|
void |
run(String... args)
Callback used to run the bean.
|
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.