Name: greeting-cloudant-spring
Owner: International Business Machines
Description: Spring + Cloudant = :heart:
Created: 2017-12-01 15:18:18.0
Updated: 2018-01-22 18:50:37.0
Pushed: 2017-12-06 15:35:46.0
Size: 154
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The Cloudant Java SDK has new support for Spring Framework and Spring Boot.
This repository contains a few projects to walk you through what this new support provides when working with Spring and Cloudant.
com.cloudant:cloudant-client
@EnableCloudant
annotation from the com.cloudant:cloudant-spring-framework
library to connect to a Cloudant databasecom.cloudant:cloudant-spring-boot-starter
library to automatically configure and connectto a Cloudant databaseThe official Cloudant Java Client provides libraries for Java applications to connect to, and interact with Cloudant databases. The new Cloudant Spring Library builds on top of the Cloudant Java Client to enable autoconfiguration for Spring Boot applications and exposes an @EnableCloudant
annotation for Spring Framework applications.
Before the creation of the Cloudant Spring Library developers had to include configuration for Spring beans that connected to Cloudant in their application code. Now the beans are provided by the library.
Before:
After:
The new Cloudant Spring client provides both the beans used for connecting to Cloudant and the configuration properties file for specifying credential information. The library is pulled in as a dependency from Maven Central.
Before:
com.cloudant:cloudant-client
After:
com.cloudant:cloudant-client
as a dependencycom.cloudant:cloudant-spring-boot-starter
or com.cloudant:cloudant-spring-framework