Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

This Java Coffee Shop app is used by the getting started content to demonstrate how easy it is to deploy a Java web app to Azure App Service.

License

Notifications You must be signed in to change notification settings

Azure-Samples/app-service-web-java-get-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

services platforms author
app-service\web, app-service
java
cephalin

Java sample for Azure App Service - Coffee Shop

This is a Java coffee shop web app that you can deploy to Azure App Service. It uses the same WAR file as the Java Coffee Shop sample in the Azure Marketplace and demonstrates how Java apps are deployed to App Service.

To learn how to deploy this sample web app to App Service in a few minutes, go to Get started with web apps in Azure App Service.

The purpose of this sample is not to demonstrate best-practice deployment of a Java web app, but to show you the exact folder structure in App Service you should have when deploying a Java web app (see Folder structure). Keeping WAR files in a Git repository is not ideal. It is better to use FTP or [content synchronization with a cloud folder])(https://azure.microsoft.com/en-us/documentation/articles/app-service-deploy-content-sync/).

Serving Java apps in App Service

This sample uses the Tomcat server provided by App Service. You can serve Java web apps in a variety of ways: with a web server provided by App Service, with a custom server, or with a server embedded in your WAR/JAR.

### Folder structure

The main thing in the repo is a webapps folder with ROOT.war. The Tomcat/Jetty server in App Service will look inside this folder for web apps to host. ROOT.war represents the default web app (at the site root). Any WAR file that's otherwise named represents a web app accessbile at ~/<WARfilename>.

Also included in the repo is the Web.config file, that uses the httpPlatformHandler to tell IIS to be a proxy between HTTP requests and the Tomcat 8 server. You don't actually need this file if you enable Java for your app through the portal UI.

License

See LICENSE.

About

This Java Coffee Shop app is used by the getting started content to demonstrate how easy it is to deploy a Java web app to Azure App Service.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published