Introduction to Spring Cloud

Spring Cloud? What is that?

Spring Cloud is an extension of Spring Boot provided through various libraries and aimed at addressing different cloud-native patterns. In this case, Spring Cloud Stream aims to simplify the chaining together of services via messaging.

To use any Spring Cloud library, we need to add the following chunk to the bottom of our build.gradle file:

    dependencyManagement { 
      imports { 
        mavenBom "org.springframework.cloud:spring-cloud-          dependencies:${springCloudVersion}" 
      } 
    } 

This preceding fragment of code is part of Spring's Dependency Management gradle plugin, pulling in Spring Cloud BOM (Bill of Materials). In this case, it has a variable, springCloudVersion, which we need to select.

Spring ...

Get Developing Java Applications with Spring and Spring Boot 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.