Skip to content

Commit 1a8ee55

Browse files
authored
pull base content,head:MicrosoftDocs:main,into:wwlpublishsync
2 parents 9bb4420 + 015a8b4 commit 1a8ee55

File tree

116 files changed

+1895
-1866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1895
-1866
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.1-introduction
3-
title: Introduction
4-
metadata:
5-
title: Introduction
6-
description: Introduction
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-extended-java
14-
ms.contributors: ropreddy-11172020
15-
durationInMinutes: 3
16-
content: |
17-
[!include[](includes/1-introduction.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.1-introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: Introduction
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-extended-java
14+
ms.contributors: ropreddy-11172020
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/1-introduction.md)]
18+
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.2-build
3-
title: Build a Spring Boot application
4-
metadata:
5-
title: Build a Spring Boot application
6-
description: Build a Spring Boot application, set up its Azure resources, and connect it to a MySQL database.
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-azurecli
14-
- devx-track-extended-java
15-
ms.contributors: ropreddy-11202020
16-
durationInMinutes: 2
17-
content: |
18-
[!include[](includes/2-build.md)]
19-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.2-build
3+
title: Build a Spring Boot application
4+
metadata:
5+
title: Build a Spring Boot application
6+
description: Build a Spring Boot application, set up its Azure resources, and connect it to a MySQL database.
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-azurecli
14+
- devx-track-extended-java
15+
ms.contributors: ropreddy-11202020
16+
durationInMinutes: 2
17+
content: |
18+
[!include[](includes/2-build.md)]
19+
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.3-exercise-build
3-
title: Exercise - Create Azure resources and a Java Spring application
4-
metadata:
5-
title: Exercise - Create Azure resources and a Java Spring application
6-
description: Learn how to create Azure resources and a Java Spring application.
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-extended-java
14-
ms.contributors: ropreddy-11202020
15-
durationInMinutes: 10
16-
content: |
17-
[!include[](includes/3-exercise-build.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.3-exercise-build
3+
title: Exercise - Create Azure resources and a Java Spring application
4+
metadata:
5+
title: Exercise - Create Azure resources and a Java Spring application
6+
description: Learn how to create Azure resources and a Java Spring application.
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-extended-java
14+
ms.contributors: ropreddy-11202020
15+
durationInMinutes: 10
16+
content: |
17+
[!include[](includes/3-exercise-build.md)]
18+
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.4-deploy
3-
title: Deploy a Spring Boot application to Azure
4-
metadata:
5-
title: Deploy a Spring Boot application to Azure
6-
description: Learn how to deploy a Spring Boot web application to Azure.
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-extended-java
14-
ms.contributors: ropreddy-11202020
15-
durationInMinutes: 3
16-
content: |
17-
[!include[](includes/4-deploy.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.4-deploy
3+
title: Deploy a Spring Boot application to Azure
4+
metadata:
5+
title: Deploy a Spring Boot application to Azure
6+
description: Learn how to deploy a Spring Boot web application to Azure.
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-extended-java
14+
ms.contributors: ropreddy-11202020
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/4-deploy.md)]
18+
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.5-exercise-deploy
3-
title: Exercise - Deploy a Spring Boot application
4-
metadata:
5-
title: Exercise - Deploy a Spring Boot application
6-
description: Follow this exercise to learn how to deploy a Spring Boot application.
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-extended-java
14-
ms.contributors: ropreddy-11202020
15-
durationInMinutes: 7
16-
content: |
17-
[!include[](includes/5-exercise-deploy.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.5-exercise-deploy
3+
title: Exercise - Deploy a Spring Boot application
4+
metadata:
5+
title: Exercise - Deploy a Spring Boot application
6+
description: Follow this exercise to learn how to deploy a Spring Boot application.
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-extended-java
14+
ms.contributors: ropreddy-11202020
15+
durationInMinutes: 7
16+
content: |
17+
[!include[](includes/5-exercise-deploy.md)]
18+
Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.6-knowledge-check
3-
title: Module assessment
4-
metadata:
5-
title: Module assessment
6-
description: Check your knowledge.
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-extended-java
14-
ms.contributors: ropreddy-11202020
15-
durationInMinutes: 3
16-
quiz:
17-
questions:
18-
- content: "Which service allows developers to scaffold the structure of a Spring Boot application?"
19-
choices:
20-
- content: "Maven"
21-
isCorrect: false
22-
explanation: "Maven is a build tool that allows you to configure dependencies and deploy applications."
23-
- content: "Spring Initializr"
24-
isCorrect: true
25-
explanation: "Correct. Spring Initializr is a web application that generates a Spring Boot project structure for you."
26-
- content: "The Azure CLI"
27-
isCorrect: false
28-
explanation: "The Azure CLI is a command-line interface that you can use to create and manage Azure resources."
29-
- content: 'Which of the following Java class types provides generic CRUD methods to manage JPA objects?'
30-
choices:
31-
- content: Repository
32-
isCorrect: true
33-
explanation: "Correct. By extending `JpaRepository`, you get a bunch of generic CRUD methods that allow you to manage JPA objects."
34-
- content: Controller
35-
isCorrect: false
36-
explanation: "A `controller` publishes REST interfaces to store and retrieve data through HTTP."
37-
- content: Entity
38-
isCorrect: false
39-
explanation: "A JPA entity object maps Java classes to database tables."
40-
- content: "Which Maven command creates your Azure App Service instance in Azure?"
41-
choices:
42-
- content: "config"
43-
isCorrect: false
44-
explanation: "This command sets up your project with a subscription, Java version, and operating system you specify."
45-
- content: "deploy"
46-
isCorrect: true
47-
explanation: "Correct. This command creates your instance. It copies your application and starts it."
48-
- content: "package"
49-
isCorrect: false
50-
explanation: "This command bundles your application into an executable JAR file."
51-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.6-knowledge-check
3+
title: Module assessment
4+
metadata:
5+
title: Module assessment
6+
description: Check your knowledge.
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-extended-java
14+
ms.contributors: ropreddy-11202020
15+
durationInMinutes: 3
16+
quiz:
17+
questions:
18+
- content: "Which service allows developers to scaffold the structure of a Spring Boot application?"
19+
choices:
20+
- content: "Maven"
21+
isCorrect: false
22+
explanation: "Maven is a build tool that allows you to configure dependencies and deploy applications."
23+
- content: "Spring Initializr"
24+
isCorrect: true
25+
explanation: "Correct. Spring Initializr is a web application that generates a Spring Boot project structure for you."
26+
- content: "The Azure CLI"
27+
isCorrect: false
28+
explanation: "The Azure CLI is a command-line interface that you can use to create and manage Azure resources."
29+
- content: 'Which of the following Java class types provides generic CRUD methods to manage JPA objects?'
30+
choices:
31+
- content: Repository
32+
isCorrect: true
33+
explanation: "Correct. By extending `JpaRepository`, you get a bunch of generic CRUD methods that allow you to manage JPA objects."
34+
- content: Controller
35+
isCorrect: false
36+
explanation: "A `controller` publishes REST interfaces to store and retrieve data through HTTP."
37+
- content: Entity
38+
isCorrect: false
39+
explanation: "A JPA entity object maps Java classes to database tables."
40+
- content: "Which Maven command creates your Azure App Service instance in Azure?"
41+
choices:
42+
- content: "config"
43+
isCorrect: false
44+
explanation: "This command sets up your project with a subscription, Java version, and operating system you specify."
45+
- content: "deploy"
46+
isCorrect: true
47+
explanation: "Correct. This command creates your instance. It copies your application and starts it."
48+
- content: "package"
49+
isCorrect: false
50+
explanation: "This command bundles your application into an executable JAR file."
51+
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.7-summary
3-
title: Summary
4-
metadata:
5-
title: Summary
6-
description: Review what you learned about deploying a Spring Boot application.
7-
ms.date: 11/08/2023
8-
author: roryp
9-
ms.author: ropreddy
10-
ms.topic: unit
11-
ms.custom:
12-
- team=cloud_advocates
13-
- devx-track-extended-java
14-
ms.contributors: ropreddy-11172020
15-
durationInMinutes: 2
16-
content: |
17-
[!include[](includes/7-summary.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-java-spring-boot-app-service-mysql.7-summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: Review what you learned about deploying a Spring Boot application.
7+
ms.date: 04/18/2025
8+
author: roryp
9+
ms.author: ropreddy
10+
ms.topic: unit
11+
ms.custom:
12+
- team=cloud_advocates
13+
- devx-track-extended-java
14+
ms.contributors: ropreddy-11172020
15+
durationInMinutes: 2
16+
content: |
17+
[!include[](includes/7-summary.md)]
18+

learn-pr/azure/deploy-java-spring-boot-app-service-mysql/includes/1-introduction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Imagine you're a Java developer working for a company that creates Spring Boot a
22

33
You want to build a to-do list application that uses a MySQL database. You've decided to build this Spring Boot application from scratch.
44

5-
In this module, you'll first scaffold a Spring Boot web application by using Spring Initializr. Spring Initializr is an online tool that generates a Spring Boot project that includes just what you need to start quickly. This scaffold gives you a base to work from.
5+
In this module, you'll first scaffold a Spring Boot web application by using Spring Initializr. Spring Initializr is an online tool that generates a Spring Boot project that includes just what you need to start quickly. This scaffold gives you a base from which to work.
66

77
You'll then code a to-do application that stores tasks in a relational database. The tasks will need a MySQL database, so you'll create and host by using Azure Database for MySQL.
88

@@ -11,6 +11,7 @@ Next, you'll build the application and also configure it to connect to the MySQL
1111
By the end of this module, you'll be able to incorporate Spring Boot applications into Azure App Service and integrate with a relational database.
1212

1313
You'll use your own Azure subscription to deploy the resources in this module. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/java/?azure-portal=true&WT.mc_id=java-10785-ropreddy) before you begin.
14+
1415
> [!IMPORTANT]
1516
> To avoid unnecessary charges in your Azure subscription, remember to deprovision your Azure resources when you finish this module.
1617

learn-pr/azure/deploy-java-spring-boot-app-service-mysql/includes/2-build.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ In this unit, you'll learn how to create a Spring application, connect it to a M
22

33
## Introduction to Azure App Service
44

5-
Azure App Service allows you to host your company's websites, web applications, REST APIs, and other application code on Azure. Running your web application in Azure App Service provides you with all the benefits of running on Azure: your application is available, it scales, and it has built-in security and compliance.
5+
Azure App Service allows you to host your company's websites, web applications, REST APIs, and other application code on Azure. Running your web application in Azure App Service provides you with all the benefits of running on Azure: your application is available, it scales, and it has built-in security and compliance.
66

77
You want to create a Spring Boot application that hosts its logic in Azure App Service and hosts its database in an Azure MySQL database.
88

@@ -12,13 +12,11 @@ Spring is a great framework to host and manage your applications. You just wire
1212

1313
You've decided to use Spring Boot. This framework is self-hosted, and it provides support services to run your application.
1414

15-
The Spring injection annotations use dependency injection to process the components.
16-
You can use Azure Spring Starter integration libraries to configure and set up connections to Azure services.
15+
The Spring injection annotations use dependency injection to process the components. You can use Azure Spring Starter integration libraries to configure and set up connections to Azure services.
1716

1817
## Create your resources by using the Azure CLI and Maven
1918

20-
You can use the Azure CLI to create and manage Azure resources.
21-
It runs on Linux, macOS, and Windows. The CLI allows administrators and developers to run commands by using a terminal or command-line prompt (or script) instead of a web browser.
19+
You can use the Azure CLI to create and manage Azure resources. It runs on Linux, macOS, and Windows. The CLI allows administrators and developers to run commands by using a terminal or command-line prompt (or script) instead of a web browser.
2220

2321
For example, to get the details of a subscription, you can use the following command:
2422

0 commit comments

Comments
 (0)