第一种就是main执行 SpringApplication.run 第二种 mvn spring-boot:run 第三种 mvn install打包后用java命令执行 java -jar xxxx.jar