Skip to content

A hello world sample for the App Service quickstart, which contains a simple Tomcat web app that's programmatically loaded by an embedded Tomcat server.

License

Notifications You must be signed in to change notification settings

dfuenzalida/java-docs-embedded-tomcat

 
 

Repository files navigation

Embedded Tomcat servlet example

This sample includes a Tomcat application run by an embedded Tomcat server. It's configured to be deployable as an executable uber JAR file to Azure App Service.

Running locally

  1. Build with mvn clean package.
  2. Run locally with java -jar .\target\embeddedTomcatExample.jar.

Deploy to App Service

To deploy to App Service, edit the section "Configure your deployment to Azure App Service" on the file pom.xml and run mvn package azure-webapp:deploy.

  1. Add the plugin azure-webapp-maven-plugin by running the following command:

    mvn com.microsoft.azure:azure-webapp-maven-plugin:2.13.0:config
  2. Deploy the app by running the following command:

    mvn package azure-webapp:deploy

About

A hello world sample for the App Service quickstart, which contains a simple Tomcat web app that's programmatically loaded by an embedded Tomcat server.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.4%
  • CSS 5.6%