C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Spring Boot CLIIt is a tool which you can download from the official site of Spring Framework. Here, we are explaining steps. Download the CLI tool from official site as we are doing here. ![]() After downloading, extract the zip file. It contains a bin folder, in which spring setup is stored. We can use it to execute Spring Boot application. ![]() CLI executes groovy files. So, first, we need to create a groovy file for Spring Boot application. Open terminal and cd into the bin location of cli folder. ![]() Create a groovy file. ![]() Create a controller in the groovy file. ![]() Execute this file By using the following command. ./spring run SpringBootCliExample.groovy ![]() After executing the above command, it starts the execution and produces the following output. ![]() And after lots of lines. It shows the current status of application as follow. ![]() This project is running on the port 8080. So, we can invoke it on any browser by using the following url. localhost:8080:/cli-example It will produce the following output. ![]()
Next TopicSpring Boot Application
|