This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12613|Reply: 0

[Source] Spring Boot+maven to build projects quickly

[Copy link]
Posted on 1/7/2019 1:38:49 PM | | | |
Recently, companies have used springboot to build projects, which is indeed much faster than SSH construction. Springboot official learning website

1. First of all, download maven, it is very convenient to manage projects with maven, after downloading maven to configure the environment, maven I won't go into details.

2. Create a maven project and write these pom.xml file:



3. The file directory created is as shown in the figure:



4. Create an Application class under the main folder of the project, the code is as follows:

5. Add a application.yml file under resources






Previous:How to display PDFs on a web page
Next:Spring Boot reads (application.yml) the value of the configuration file
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com