一: IDE 运行Application这个类的main方法 二: 在springboot的应用的根目录下运行mvn spring-boot:run 三: 使用mvn install 生成jar后运行 先到项目根目录 mvn install cd target java -jar xxxx.jar