Google News
logo
Java Spring Boot - Interview Questions
What is Spring boot CLI?
Spring boot CLI is a command line interface, which use and run test the microservices application based on spring boot.
 
* Spring Boot CLI is a module of Spring boot application which use to run and test Spring Boot applications from the command prompt.
* When we run Spring Boot applications using CLI, then it internally uses Spring Boot Starter and Spring Boot Autoconfiguration components to resolve all dependencies and execute the application.
* Internally contains Groovy file which is a JAR Dependency Manager to add Spring Boot Defaults and resolve all dependencies automatically. 

Spring Boot CLI operation is a combination of below component :

* Auto Dependency Resolution 
* Auto-Configuration
* Management Endpoints
* Embedded HTTP Servers
 
The benefits that we achieved from using spring boot CLI is, that we don’t need to use any import, no need to do the xml configuration, no web.xml and no dispatcherservlet declaration and no need to create war file manually.
Advertisement