I understand that Azure Spring Apps does not recommend deploying in WAR format, but is this correct?

kazuya kurosawa 80 Reputation points
2024-01-23T05:57:40.5533333+00:00
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.
110 questions
0 comments No comments
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 21,471 Reputation points
    2024-01-24T06:16:23.75+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 additional answers

Sort by: Most helpful