SpringBoot 的三种启动方式
一、IDE运行Application这个类的main方法
二、利用命令行进入该项目目录下运行mvn spring-boot:run
终止Tomcat的方法:快捷键Ctrl+C
三、使用mvn Install 生成jar后运行
先到项目根目录
mvn install
进入target目录
cd target
运行
java -jar xxxx.jar
SpringBoot 的三种启动方式
一、IDE运行Application这个类的main方法
二、利用命令行进入该项目目录下运行mvn spring-boot:run
终止Tomcat的方法:快捷键Ctrl+C
三、使用mvn Install 生成jar后运行
先到项目根目录
mvn install
进入target目录
cd target
运行
java -jar xxxx.jar