O'Reilly logo

Spring Boot Cookbook by Alex Antonov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Management of Spring Boot via CRaSH and writing custom remote shell commands

Some of you are probably reminiscing about the good old days where all the administration was done via SSH directly on the machine, where one has complete flexibility and control, or even using a Telnet to connect to a management port and apply whatever the changes needed directly to a running application. For you, Spring Boot provides integration with the CRaSH Java Shell.

For this recipe, we will use the health indicator and management endpoint, which we created earlier in this chapter. We will expose the same capabilities via the SSH and Telnet console access.

How to do it…

  1. The first step to get CRaSH to work is add the necessary dependency starters to our build.gradle ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required