page_type | languages | products | name | description | ||
---|---|---|---|---|---|---|
sample |
|
|
Developing Spring Boot Web Application Supports Login by Microsoft Entra Account and Expose REST API |
This sample demonstrates how to develop a Spring Boot web application supports login by Microsoft Entra account and expose REST API at the same time. |
Developing Spring Boot Web Application Supports Login by Microsoft Entra Account and Expose REST API
This scenario supports Web application
and Resource server
in one application.
We assume that when used as a Resource server, it is called WebApiC
; when used as a Web application, it is called WebApp2
.
See Configure web application for more information about web app.
See Configure groups for sign in user for more information about groups for sign in user.
See Configure your middle-tier Web API or Configure Web API for more information about web api.
cd azure-spring-boot-samples/aad/spring-cloud-azure-starter-active-directory/aad-web-application-and-resource-server
mvn spring-boot:run
See Check the authentication and authorization of Web Application or Check the authentication and authorization of Resource Server for more information about checking.
Now that you have the Spring Boot application running locally, it's time to move it to production. Azure Spring Apps makes it easy to deploy Spring Boot applications to Azure without any code changes. The service manages the infrastructure of Spring applications so developers can focus on their code. Azure Spring Apps provides lifecycle management using comprehensive monitoring and diagnostics, configuration management, service discovery, CI/CD integration, blue-green deployments, and more. To deploy your application to Azure Spring Apps, see Deploy your first application to Azure Spring Apps.