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.
Spring Cloud Connectors focuses on providing a good out-of-the-box experience for typical use cases and an extensibility mechanism to cover others.
javax.sql.DataSource
and various connection factories from Spring Data projects.
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.