Azure Spring Data Cosmos getting started tutorial.
This tutorial provides getting started features for azure-spring-data-cosmos
Java SQL API modules.
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-getting-started.git
- cd azure-spring-data-cosmos-java-sql-api-getting-started
- cd azure-spring-data-cosmos-java-getting-started (for Java8) or azure-spring-data-cosmos-java-11-getting-started (for Java11)
- mvn spring-boot:run
Please refer to azure spring data cosmos java sql api source code for more information.