Azure Spring Data Azure Cosmos DB sample code
This repo provides basic sample code for getting started with azure-spring-data-cosmos
for Java SQL API.
Java Development Kit 8
orJDK 11
if you run theazure-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.
mvn clean install
- git clone https://github.com/Azure-Samples/azure-spring-data-cosmos-java-sql-api-samples.git
- cd azure-spring-data-cosmos-java-sql-api-samples
- mvn spring-boot:run
Please refer to azure spring data cosmos for sql api source code for more information.