Follow the steps to run this application.
-
Create Azure SQL database and import data following Create DB for MySQL on Azure.
-
Build and deploy this application to Azure WebApp.
Change webapp config in pom.xml file, make sure the
appName
is a unique name, e.g.:<resourceGroup>azure-javaweb-app</resourceGroup> <appName>azure-javaweb-app-0306</appName> <pricingTier>P1v2</pricingTier> <region>japaneast</region>
Build and deploy the app.
mvn clean package azure-webapp:deploy
Please note that, the database is not set yet, the application is not accessible.
-
Configure database settings and restart the application following MySQL Settings in the Web Application.
-
You can access the application with the URL from output. It may takes several minutes to connect to the database with correct settings.