Skip to content

trande4884/azure-spring-data-cosmos-java-sql-api-samples-trande

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Cosmos DB Spring Data Sample

Azure Spring Data Azure Cosmos DB sample code

Features

This repo provides basic sample code for getting started with azure-spring-data-cosmos for Java SQL API.

Getting Started

Prerequisites

  • Java Development Kit 8 or JDK 11 if you run the azure-spring-data-cosmos-java-11-getting-started.
  • An active Azure account. If you don't have one, you can sign up for a free account. Alternatively, you can use the Azure Cosmos DB Emulator for development and testing. As emulator https certificate is self signed, you need to import its certificate to java trusted cert store, explained here
  • (Optional) SLF4J is a logging facade.
  • (Optional) SLF4J binding is used to associate a specific logging framework with SLF4J.
  • (Optional) Maven.

SLF4J is only needed if you plan to use logging, please also download an SLF4J binding which will link the SLF4J API with the logging implementation of your choice. See the SLF4J user manual for more information.

Installation

mvn clean install

Quickstart

  1. git clone https://github.com/Azure-Samples/azure-spring-data-cosmos-java-sql-api-samples.git
  2. cd azure-spring-data-cosmos-java-sql-api-samples
  3. mvn spring-boot:run

Resources

Please refer to azure spring data cosmos for sql api source code for more information.

About

Spring Data Azure Cosmos DB samples repo

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%