Search code examples
javaspringspring-cloud

What are differences among spring-cloud-dependencies, spring-cloud-context and spring-cloud-commons?


I want to build a spring cloud project, but I find these three dependencies confusing, if we want to build a spring-cloud project, which of these three dependencies should be used? do they contain each other?


Solution

  • Taken from https://spring.io/projects/spring-cloud-commons:

    • Spring Cloud Context provides utilities and special services for the ApplicationContext of a Spring Cloud application (bootstrap context, encryption, refresh scope and environment endpoints)
    • Spring Cloud Commons is a set of abstractions and common classes used in different Spring Cloud implementations (eg. Spring Cloud Netflix vs. Spring Cloud Consul).