Three startup methods of springboot

One: IDE runs the main method of the Application class

write picture description here


Two: run mvn spring-boot:run in the root directory of the springboot application

write picture description here


Three: use mvn install to generate jar and run

先到项目根目录
mvn install
cd target
java -jar   xxxx.jar

write picture description here


write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325124046&siteId=291194637