spring-projects / spring-shell

Spring based shell
http://projects.spring.io/spring-shell/
Apache License 2.0
733 stars 396 forks source link

Getting Started missing interactive flag #1108

Closed cedric-tache closed 2 months ago

cedric-tache commented 3 months ago

I tried following multiple articles and documentation to create my first Spring Shell project. The interactive shell never appeared.

I finally found the answer here: https://github.com/spring-projects/spring-shell/issues/1081

The Getting started section doesn't mention that I need to add the following property:

spring.shell.interactive.enabled=true

I couldn't test it yet, but I believe the following caution is not needed anymore with the default behavior of having the interactive shell disabled:

Given that Spring Shell starts the REPL (Read-Eval-Print-Loop) because this dependency is present, you need to either skip tests when you build (-DskipTests) throughout this tutorial or remove the sample integration test that was generated by [start.spring.io](https://start.spring.io/). If you do not remove it, the integration test creates the Spring ApplicationContext and, depending on your build tool, stays stuck in the eval loop or crashes with a NPE.