@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 java.lang.Exception
args
- incoming application argumentsjava.lang.Exception
- on error