One: IDE runs the main method of the Application class
Two: run mvn spring-boot:run in the root directory of the springboot application
Three: use mvn install to generate jar and run
先到项目根目录
mvn install
cd target
java -jar xxxx.jar
先到项目根目录
mvn install
cd target
java -jar xxxx.jar