From the course: Spring Boot 3 Essential Training

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Building a command-line application

Building a command-line application - Spring Boot Tutorial

From the course: Spring Boot 3 Essential Training

Building a command-line application

- [Instructor] So now let's build a command line runner for ourselves. So the first thing that we're going to do is we're going to create a new module. Now you can do this again through start.spring.io or whatever you're comfortable with. If you have an IDE plugin, it doesn't matter. We just need to get an application created. So I'm going to create a module, and we're going to call this room-CLR for Room Command Line Runner. The name will make more sense as we go throughout the rest of this course. We'll choose Java, Maven. Set your group name. I'm going to use Com.FrankMoley.lil. Artifact name is fine. Pick Java 21. Packaging of Jar. And we're not going to bring in any dependencies for now. I'm going to go ahead and create that. And one thing I want to show you, when you choose no dependencies, you still get the Spring Boot Starter and Spring Boot Starter Test. We just haven't brought anything else in. This is all we need at this point. So let's go to source, main, Java and bring up…

Contents