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/app-service/includes/quickstart-java/quickstart-java-javase.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,19 @@ The quickstart deploys either a Spring Boot app, embedded Tomcat, or Quarkus app
14
14
> [!NOTE]
15
15
> App Service can host Spring apps. For Spring apps that require all the Spring services, try [Azure Spring Apps](../../../spring-apps/quickstart.md) instead.
16
16
17
-
:::image type="content" source="../../media/quickstart-java/quarkus-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Maven Hello World web app running in Azure App Service in introduction.":::
17
+
### [Spring Boot](#tab/springboot)
18
+
19
+
:::image type="content" source="../../media/quickstart-java/springboot-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Spring Boot Hello World web app running in Azure App Service in introduction.":::
20
+
21
+
### [Embedded Tomcat](#tab/embeddedtomcat)
22
+
23
+
:::image type="content" source="../../media/quickstart-java/embeddedtomcat-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of embedded Tomcat Hello World web app running in Azure App Service in introduction.":::
24
+
25
+
### [Quarkus](#tab/quarkus)
26
+
27
+
:::image type="content" source="../../media/quickstart-java/quarkus-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Quarkus Hello World web app running in Azure App Service in introduction.":::
28
+
29
+
-----
18
30
19
31
If Maven isn't your preferred development tool, check out our similar tutorials for Java developers:
@@ -60,7 +72,6 @@ If Maven isn't your preferred development tool, check out our similar tutorials
60
72
61
73
The application is run using the standard [Tomcat](https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/startup/Tomcat.html) class (see [Main.java](https://github.com/Azure-Samples/java-docs-embedded-tomcat/blob/main/src/main/java/com/microsoft/azure/appservice/examples/embeddedtomcat/Main.java) in the sample).
62
74
63
-
64
75
### [Quarkus](#tab/quarkus)
65
76
66
77
1. Generate a new Quarkus app named `quarkus-hello-azure` with the following Maven command:
@@ -179,7 +190,8 @@ With all the configuration ready in your [pom.xml](https://github.com/Azure-Samp
179
190
- Create an [executable JAR](https://en.wikipedia.org/wiki/JAR_(file_format)#Executable_JAR_files) by specifying the Tomcat class as the start-up class.
180
191
- Replace the original artifact with the uber JAR to ensure that the deploy step deploys the right file.
181
192
182
-
> [!TIP] Quarkus and Spring Boot both produce two JAR files with `mvn clean package`, but `azure-webapp-maven-plugin` picks the right JAR file to deploy automatically.
193
+
> [!TIP]
194
+
> Quarkus and Spring Boot both produce two JAR files with `mvn clean package`, but `azure-webapp-maven-plugin` picks the right JAR file to deploy automatically.
183
195
184
196
### [Quarkus](#tab/quarkus)
185
197
@@ -216,24 +228,19 @@ With all the configuration ready in your [pom.xml](https://github.com/Azure-Samp
216
228
217
229
### [Spring Boot](#tab/springboot)
218
230
219
-
Once deployment is completed, your application is ready at `http://<appName>.azurewebsites.net/`. Open the URL `http://<appName>.azurewebsites.net/greeting` with your local web browser (note the `/greeting` path), and you should see the following JSON:
231
+
Once deployment is completed, your application is ready at `http://<appName>.azurewebsites.net/`. Open the URL `http://<appName>.azurewebsites.net/greeting` with your local web browser (note the `/greeting` path), and you should see:
220
232
221
-
```output
222
-
{
223
-
"id": 1,
224
-
"content": "Hello, World!"
225
-
}
226
-
```
233
+
:::image type="content" source="../../media/quickstart-java/springboot-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Spring Boot Hello World web app running in Azure App Service.":::
227
234
228
235
### [Embedded Tomcat](#tab/embeddedtomcat)
229
236
230
-
Once deployment is completed, your application is ready at `http://<appName>.azurewebsites.net/`. Open the url with your local web browser, and you should see
237
+
Once deployment is completed, your application is ready at `http://<appName>.azurewebsites.net/`. Open the url with your local web browser, and you should see:
231
238
232
239
:::image type="content" source="../../media/quickstart-java/embeddedtomcat-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of embedded Tomcat web app running in Azure App Service.":::
233
240
234
241
### [Quarkus](#tab/quarkus)
235
242
236
-
Once deployment is completed, your application is ready at `http://<appName>.azurewebsites.net/`. Open the url with your local web browser, and you should see
243
+
Once deployment is completed, your application is ready at `http://<appName>.azurewebsites.net/`. Open the url with your local web browser, and you should see:
237
244
238
245
:::image type="content" source="../../media/quickstart-java/quarkus-hello-world-in-browser-azure-app-service.png" alt-text="Screenshot of Quarkus web app running in Azure App Service.":::
0 commit comments