Setting up Spring Cloud 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: local-data-flow-server
  • Dependencies: Local Data Flow Server

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

    <dependency>      <groupId>org.springframework.cloud</groupId>      <artifactId>spring-cloud-starter-dataflow-server-      local</artifactId>    </dependency>

Update the SpringBootApplication file with the following code:

    @EnableDataFlowServer    @SpringBootApplication    public class LocalDataFlowServerApplication {      public static void main(String[] args) { SpringApplication.run(LocalDataFlowServierApplication.class, ...

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.