Is it possible to deploy a web application (WAR file format) in the Azure Spring Apps environment?

kazuya kurosawa 80 Reputation points
2024-01-22T06:18:20.39+00:00

Please tell me something about the title. Is it possible to deploy a web application (WAR file format) in the Azure Spring Apps environment? Microsoft Azure Quickstart for Azure Spring Apps (https://video2.skills-academy.com/en-jp/azure/spring-apps/quickstart?pivots=sc-enterprise&tabs=Azure-portal%2CAzure-portal-ent%2CConsumption- workload) explains how to deploy a Spring Boot application in JAR file format, but for example, it is possible to deploy a web application created using Spring MVC in WAR file format to an Azure Spring Apps environment. Is not it. If this is not recommended, I would appreciate it if you could tell me why. Might be a stupid question. sorry.

Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
114 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 23,256 Reputation points
    2024-01-24T06:11:43.12+00:00

    kazuya kurosawa Thanks for reaching out. Azure Spring Apps is primarily designed to host Spring Boot applications, which are typically packaged as JAR files. If you have a Java web application packaged as a WAR file, Azure App Service is a more suitable choice. Azure App Service supports deploying Java web applications in the form of WAR files and provides a fully managed platform for building, deploying, and scaling web apps and APIs. https://techcommunity.microsoft.com/t5/apps-on-azure-blog/deploy-spring-boot-application-to-app-service-tomcat-stack-using/ba-p/3708959 The reason for this is that Spring Boot and Spring MVC have different deployment strategies. Spring Boot is designed to be deployed as a standalone application with an embedded server, which is why it’s typically packaged as a JAR file. On the other hand, Spring MVC is a traditional Java web framework that’s designed to run within a web container, which is why it’s typically packaged as a WAR file. Therefore, it’s recommended to use Azure App Service for deploying WAR files. I hope this helps! Let me know incase of further queries.

    0 comments No comments

0 additional answers

Sort by: Most helpful