Spring Boot CLI
It 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.
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.
It will produce the following output.