Skip to content

Getting Started missing interactive flag #1108

Closed
@cedric-tache

Description

@cedric-tache

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: #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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions