You can use https://start.spring.io to generate the spring boot application as you are already aware.
It is very easy to create a spring boot application that is run on command line. You need to follow only two simple steps.
- implements the CommandLineRunner interface.
- override the run() method
if you have done above two steps, you are done with building the command line application with spring boot. here is the sample code segment.
How to build and run the application?
Build maven clan install Run java -jar target/spring-boot-commandline-application-0.0.1-SNAPSHOT.jar
Full source code of this post can be found at GitHub