Project Structure Differences
The project structure of the traditional Maven build is as follows:
The adoption Springboot project structure built with MAVEN is as follows:
The two structures are identical, the difference is as follows: traditional projects if you need to fight a war package, you need to configure the Web. xml file in the Web-inf directory structure; springboot does not need
Starting mode Difference
Traditional Web project start-up: Import the project into the Eclipse and Tomcat plug-in, then launch Tomcat and the project is started. Or make the project into a war package, put it in Tomcat, start Tomcat
Start with Springboot project: As shown in, open Helloworldapplication.java (this class each project has, class name custom), this is a class with the Main method, click the main method, right run As-java Application
Differences in configuration Files
The configuration files for both are placed under src/main/resources
Legacy Project: More profiles, must contain applicationcontext.xml this core profile
Using Springboot project: Less configuration files, compared to traditional projects, can say that the configuration file is very small, must contain application.properties (or application.yml) this configuration file
2018-05-19
One of the Spring boot learning notes: The difference between a traditional MAVEN project and the use of the Spring boot project