CommandLineRunner

Interface used to indicate that a bean should run when it is contained within a 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.

Author

Dave Syer

Since

1.0.0

See also

Functions

Link copied to clipboard
abstract fun run(args: Array<String>)
Callback used to run the bean.