English 中文(简体)
Spring Boot CLI - Using Shell
  • 时间:2024-11-05

Spring Boot CLI - Using Shell


Previous Page Next Page  

Spring Boot CLI provides a Shell interface to run the commands in which we can directly run the commands as shown below. Go to E:Test folder and type the following command.


E:/Test> spring shell

You will see the following output.


←[1mSpring Boot←[m←[2m (v2.6.3)←[m
Hit TAB to complete. Type  help  and hit RETURN for help, and  exit  to quit.
$

Running commands in Shell.

Type the following and see the output.


version
Spring CLI v2.6.3

You can press tab to auto complete the commands and type exit to finish the shell console.

Testing the apppcation in shell

Type the following and see the output.


$ exit
E:TestFirstApppcation>
Advertisements