/**
* Interface used to indicate that a bean should <em>run</em> when it is contained within
* a {@link SpringApplication}. Multiple {@link CommandLineRunner} beans can be defined
* within the same application context and can be ordered using the {@link Ordered}
* interface or {@link Order @Order} annotation.
* <p>
* If you need access to {@link ApplicationArguments} instead of the raw String array
* consider using {@link ApplicationRunner}.
*
* 用来指定 {@link SpringApplication} 中需要运行的 bean。可以包含多个 {@link CommandLineRunner}
* 顺序用 {@link Ordered} 接口或 {@link Order @Order} 注解指定
*
* @author Dave Syer
* @see ApplicationRunner
*/@FunctionalInterfacepublicinterfaceCommandLineRunner{/**
* Callback used to run the bean.
* @param args incoming main method arguments
* @throws Exception on error
*/voidrun(String...args)throwsException;}