@FunctionalInterface public interface ApplicationRunner
SpringApplication
. Multiple ApplicationRunner
beans can be defined
within the same application context and can be ordered using the Ordered
interface or @Order
annotation.CommandLineRunner
Modifier and Type | Method and Description |
---|---|
void |
run(ApplicationArguments args)
Callback used to run the bean.
|
void run(ApplicationArguments args) throws Exception
args
- incoming application argumentsException
- on errorCopyright © 2020 Pivotal Software, Inc.. All rights reserved.