1. Download and install JDK8, Maven, Git on Azure VM and configure the environment variables, the specific configuration is not introduced
In the command line window verify that the installation was successful.
2. Using Git clone Spring Boot Sample Project
git clone https://github.com/spring-guides/gs-spring-boot
3. Use Maven project build Spring Boot Jar package
mvn clean package
4. Use Spring Boot Maven project running on a virtual machine built
mvn spring-boot:run
5. Query whether successful project deployment
http://localhost:8080
Spring Boot failure 6. Local access to the virtual machine (8080 port is not open)
7. Set up virtual machines on Azure Portal Inbound Rule 8080 to allow port access
8. Set up a firewall on a virtual machine to allow access to port 8080
9. Step 8 7 with configured access to port 8080, you can visit the local Azure virtual machine deployment of the Spring Boot program
10. Spring Boot project to connect to the MySQL database Azure
In Spring Boot engineering, the URL of the database, Username Password MySQL database into with the Azure connection
While the IP address of the Azure virtual machine is added to the list of firewall MySQL reported by Azure Portal!