详解springboot的三种启动方式

一:IDE 运行Application这个类的main方法

详解springboot的三种启动方式

二:在springboot的应用的根目录下运行mvn spring-boot:run

详解springboot的三种启动方式

三:使用mvn install 生成jar后运行

先到项目根目录

mvn install
cd target
java -jar xxxx.jar

详解springboot的三种启动方式

详解springboot的三种启动方式

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。