You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/sql-api-java-application.md
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,15 +105,15 @@ The easiest way to pull in the SQL Java SDK and its dependencies is through [Apa
105
105
* In the **Artifact Id** box, enter `azure-cosmos`.
106
106
* In the **Version** box, enter `4.0.1-beta.1`.
107
107
108
-
Or you can add the dependency XML for Group ID and Artifact ID directly to the *pom.xml* file:
109
-
110
-
```xml
111
-
<dependency>
112
-
<groupId>com.azure</groupId>
113
-
<artifactId>azure-cosmos</artifactId>
114
-
<version>4.0.1-beta.1</version>
115
-
</dependency>
116
-
```
108
+
Or, you can add the dependency XML for Group ID and Artifact ID directly to the *pom.xml* file:
109
+
110
+
```xml
111
+
<dependency>
112
+
<groupId>com.azure</groupId>
113
+
<artifactId>azure-cosmos</artifactId>
114
+
<version>4.0.1-beta.1</version>
115
+
</dependency>
116
+
```
117
117
118
118
1. Click **OK** and Maven will install the SQL Java SDK or save the pom.xml file.
119
119
@@ -199,51 +199,51 @@ Azure Web Sites makes deploying Java applications as simple as exporting your ap
199
199
200
200
All the samples in this tutorial are included in the [todo](https://github.com/Azure-Samples/documentdb-java-todo-app) project on GitHub. To import the todo project into Eclipse, ensure you have the software and resources listed in the [Prerequisites](#Prerequisites) section, then do the following:
201
201
202
-
* Install [Project Lombok](https://projectlombok.org/). Lombok is used to generate constructors, getters, setters in the project. Once you have downloaded the lombok.jar file, double-click it to install it or install it from the command line.
202
+
1. Install [Project Lombok](https://projectlombok.org/). Lombok is used to generate constructors, getters, setters in the project. Once you have downloaded the lombok.jar file, double-click it to install it or install it from the command line.
203
203
204
-
* If Eclipse is open, close it and restart it to load Lombok.
204
+
1. If Eclipse is open, close it and restart it to load Lombok.
205
205
206
-
* In Eclipse, on the **File** menu, click **Import**.
206
+
1. In Eclipse, on the **File** menu, click **Import**.
207
207
208
-
* In the **Import** window, click **Git**, click **Projects from Git**, and then click **Next**.
208
+
1. In the **Import** window, click **Git**, click **Projects from Git**, and then click **Next**.
209
209
210
-
* On the **Select Repository Source** screen, click **Clone URI**.
210
+
1. On the **Select Repository Source** screen, click **Clone URI**.
211
211
212
-
* On the **Source Git Repository** screen, in the **URI** box, enter https://github.com/Azure-Samples/documentdb-java-todo-app.git, and then click **Next**.
212
+
1. On the **Source Git Repository** screen, in the **URI** box, enter https://github.com/Azure-Samples/documentdb-java-todo-app.git, and then click **Next**.
213
213
214
-
* On the **Branch Selection** screen, ensure that **master** is selected, and then click **Next**.
214
+
1. On the **Branch Selection** screen, ensure that **master** is selected, and then click **Next**.
215
215
216
-
* On the **Local Destination** screen, click **Browse** to select a folder where the repository can be copied, and then click **Next**.
216
+
1. On the **Local Destination** screen, click **Browse** to select a folder where the repository can be copied, and then click **Next**.
217
217
218
-
* On the **Select a wizard to use for importing projects** screen, ensure that **Import existing projects** is selected, and then click **Next**.
218
+
1. On the **Select a wizard to use for importing projects** screen, ensure that **Import existing projects** is selected, and then click **Next**.
219
219
220
-
* On the **Import Projects** screen, unselect the **DocumentDB** project, and then click **Finish**. The DocumentDB project contains the Azure Cosmos DB Java SDK, which we will add as a dependency instead.
220
+
1. On the **Import Projects** screen, unselect the **DocumentDB** project, and then click **Finish**. The DocumentDB project contains the Azure Cosmos DB Java SDK, which we will add as a dependency instead.
221
221
222
-
* In **Project Explorer**, navigate to azure-documentdb-java-sample\src\com.microsoft.azure.documentdb.sample.dao\DocumentClientFactory.java and replace the HOST and MASTER_KEY values with the URI and PRIMARY KEY for your Azure Cosmos DB account, and then save the file. For more information, see [Step 1. Create an Azure Cosmos database account](#CreateDB).
222
+
1. In **Project Explorer**, navigate to azure-documentdb-java-sample\src\com.microsoft.azure.documentdb.sample.dao\DocumentClientFactory.java and replace the HOST and MASTER_KEY values with the URI and PRIMARY KEY for your Azure Cosmos DB account, and then save the file. For more information, see [Step 1. Create an Azure Cosmos database account](#CreateDB).
223
223
224
-
* In **Project Explorer**, right-click the **azure-documentdb-java-sample**, click **Build Path**, and then click **Configure Build Path**.
224
+
1. In **Project Explorer**, right-click the **azure-documentdb-java-sample**, click **Build Path**, and then click **Configure Build Path**.
225
225
226
-
* On the **Java Build Path** screen, in the right pane, select the **Libraries** tab, and then click **Add External JARs**. Navigate to the location of the lombok.jar file, and click **Open**, and then click **OK**.
226
+
1. On the **Java Build Path** screen, in the right pane, select the **Libraries** tab, and then click **Add External JARs**. Navigate to the location of the lombok.jar file, and click **Open**, and then click **OK**.
227
227
228
-
* Use step 12 to open the **Properties** window again, and then in the left pane click **Targeted Runtimes**.
228
+
1. Use step 12 to open the **Properties** window again, and then in the left pane click **Targeted Runtimes**.
229
229
230
-
* On the **Targeted Runtimes** screen, click **New**, select **Apache Tomcat v7.0**, and then click **OK**.
230
+
1. On the **Targeted Runtimes** screen, click **New**, select **Apache Tomcat v7.0**, and then click **OK**.
231
231
232
-
* Use step 12 to open the **Properties** window again, and then in the left pane click **Project Facets**.
232
+
1. Use step 12 to open the **Properties** window again, and then in the left pane click **Project Facets**.
233
233
234
-
* On the **Project Facets** screen, select **Dynamic Web Module** and **Java**, and then click **OK**.
234
+
1. On the **Project Facets** screen, select **Dynamic Web Module** and **Java**, and then click **OK**.
235
235
236
-
* On the **Servers** tab at the bottom of the screen, right-click **Tomcat v7.0 Server at localhost** and then click **Add and Remove**.
236
+
1. On the **Servers** tab at the bottom of the screen, right-click **Tomcat v7.0 Server at localhost** and then click **Add and Remove**.
237
237
238
-
* On the **Add and Remove** window, move **azure-documentdb-java-sample** to the **Configured** box, and then click **Finish**.
238
+
1. On the **Add and Remove** window, move **azure-documentdb-java-sample** to the **Configured** box, and then click **Finish**.
239
239
240
-
* In the **Servers** tab, right-click **Tomcat v7.0 Server at localhost**, and then click **Restart**.
240
+
1. In the **Servers** tab, right-click **Tomcat v7.0 Server at localhost**, and then click **Restart**.
241
241
242
-
* In a browser, navigate to `http://localhost:8080/azure-documentdb-java-sample/` and start adding to your task list. Note that if you changed your default port values, change 8080 to the value you selected.
242
+
1. In a browser, navigate to `http://localhost:8080/azure-documentdb-java-sample/` and start adding to your task list. Note that if you changed your default port values, change 8080 to the value you selected.
243
243
244
-
* To deploy your project to an Azure web site, see [Step 6. Deploy your application to Azure Web Sites](#Deploy).
244
+
1. To deploy your project to an Azure web site, see [Step 6. Deploy your application to Azure Web Sites](#Deploy).
245
245
246
246
## Next steps
247
247
248
248
> [!div class="nextstepaction"]
249
-
> [Build a node.js application with Azure Cosmos DB](sql-api-nodejs-application.md)
249
+
> [Build a node.js application with Azure Cosmos DB](sql-api-nodejs-application.md)
0 commit comments