Setting up Data Flow Shell project

Data Flow Shell provides options to use commands to configure streams and other things in Spring Data Flow Server.

Let's use Spring Initializr (https://start.spring.io) to set up the application. Provide the details listed here and click on Generate Project:

  • Group: com.mastering.spring.cloud.data.flow
  • Artifact: data-flow-shell
  • Dependencies: Data Flow Shell

Listed here are some of the important dependencies from the pom.xml file:

    <dependency>      <groupId>org.springframework.cloud</groupId>      <artifactId>spring-cloud-dataflow-shell</artifactId>    </dependency>

Update the SpringBootApplication file with the following code:

    @EnableDataFlowShell    @SpringBootApplication    public class DataFlowShellApplication { public ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.