Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between spring-shell and CRaSH?

The CRaSH project that used by spring-boot can provides interactive shell for Spring.

And I found that spring-shell have similar features too.

So what is difference between them? Why not spring-boot just using spring-sehll?

Any comments or feedback will be appreciated.

like image 584
bob Avatar asked Feb 13 '23 20:02

bob


1 Answers

I think you misunderstood the purpose of the CRaSH integration in Boot. Boot provides an integration with CRaSH so that you can connect to a running application and query management or other information remotely. The boot integration also provides custom commands to be able to query the actuator endpoints that are available.

Spring Shell is also an interactive shell that can be easily extended with command but it does not serve the same purpose at all: CRaSH allows you to interact with the VM and the "application" on which it as been installed while spring shell allows you to build your own shell with your own command for a "command-line" app.

like image 136
Stephane Nicoll Avatar answered Feb 15 '23 11:02

Stephane Nicoll