This example assumes you have previously completed the following examples:
To build the JAR file use the following Maven command line.
mvn package
To run the example locally use the following Maven command line.
mvn spring-boot:run
You can see the application in action at http://localhost:8080/
To deploy the example use the following Maven command line:
export APPSERVICE_JAVASE_SPRINGBOOT=joazappsvc-javase-springboot-$RANDOM
mvn azure-webapp:deploy \
-DappName=$APPSERVICE_JAVASE_SPRINGBOOT \
-DappServicePlan=$APPSERVICE_PLAN \
-DresourceGroup=$RESOURCE_GROUP
Once the command completes you will be able to see the example by using your
web browser and going to the xxxxx.azurewebsites.net
address the command
echoes.
The example supports the following properties that you can pass in as -Dname=value to the Maven command line to customize your deployment.
name | description |
---|---|
appName |
the Application Name |
appServicePlan |
the App Service plan to use |
resourceGroup |
the Resource Group to use |
Do NOT forget to remove the resources once you are done running the example.