Spring Cloud Connectors

Spring Cloud Connectors simplifies the process of connecting to services and gaining operating environment awareness in cloud platforms such as Cloud Foundry and Heroku, especially for Spring applications. It is designed for extensibility: you can use one of the provided cloud connectors or write one for your cloud platform, and you can use the built-in support for commonly-used services (relational databases, MongoDB, Redis, RabbitMQ) or extend Spring Cloud Connectors to work with your own services.

Quick Start
Fork me on GitHub


Spring Cloud Connectors focuses on providing a good out-of-the-box experience for typical use cases and an extensibility mechanism to cover others.

  • Java and XML config for Spring applications: Simple ways to create beans for services bound to an application.
  • Cloud platform extensibility: The concept of the cloud connector, which allows you to extend Spring Cloud Connectors' functionality to other cloud platforms.
  • Service information and connector extensibility: Your own Spring Cloud Connectors extensions can connect your application to any service by extracting the service connection information from the application operating environment, and (optionally) can transform the information into a service connector.

Constituent Projects

  • Spring Cloud Connectors Core: Core library. Cloud-agnostic, and does not rely on Spring; provides an entry point for application developers who choose to access cloud services and application information programmatically, and provides an extension mechanism for contributing cloud connectors and service connector creators.
  • Spring Cloud Service Connector: Library that provides service connector creators for javax.sql.DataSource and various connection factories from Spring Data projects.
  • Cloud Foundry Connector: Cloud connector for Cloud Foundry.
  • Heroku Connector: Cloud connector for Heroku.

Quick Start


The recommended way to get started using spring-cloud-connectors in your project is with a dependency management system – the snippet below can be copied and pasted into your build. Need help? See our getting started guides on building with Maven and Gradle.

Then if you are working with a Spring application, follow instructions in Spring Cloud Spring Service Connector. If you aren't using Spring, take a look at Spring Cloud Connectors Core.

Community Extensions