Learn about the command-line runner interface and how to use it for building Spring Boot command-line applications.
- [Instructor] One of my favorite interfaces…in the Spring Boot ecosystem,…and one that is very seldom talked about,…is the CommandLineRunner.…Now, the CommandLineRunner is a very simple…and effective tool when you need to do a set amount of work.…We don't always need to bring in web or Rabbit…or any of the other processes.…Sometimes we just want to do work,…and we want it deployed as a task,…but we want to use Spring in the most efficient way possible…so we feel that Spring Boot is that case,…and that's really where…the CommandLineRunner interface shines.…
Sometimes we just need to do some work.…Now, the beauty of this interface is,…you can run it and a standalone Spring Boot application…or you can run it in another Spring Boot application,…say a web application or a Spring batch application.…It allows you to do admin or batch processes…as part of your application, or as I alluded to,…standalone fashion.…Now, the CommandLineRunner interface,…it provides access to the application arguments,…and oftentimes, when we want to write a command line process…
AuthorFrank P Moley III
- Creating a Spring Boot application
- Configuring a Spring Boot app
- Leveraging profiles
- Packaging and running Spring Boot web apps
- Building a command-line application
- Using Spring Boot starters: Spring Data, Spring Security, and more
- Extending Spring Boot
- Using Spring Boot Actuator to monitor app health and other metrics
Skill Level Intermediate
What you need to know4m 14s
1. Boot Camp
2. Web Applications with Spring Boot
3. Command-Line Applications with Spring Boot
4. Using Spring Boot Starters
5. Extending Spring Boot
6. Extending Actuator
Next steps3m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.