springboot项目打包运行 springboot项目是有启动类的,最终会打成jar包。 打开idea去到项目的终端文件夹下 mvn clean package 此时target目录下多了一个 项目名.jar 包 接着去到target目录下 直接运行 java -jar 项目名.jar