1、打包
1)打包插件
pom.xml
<!--SpringBoot应用打包插件-->
<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins>
</build>
2)开始打包
2、运行
把jar包复制出来,使用cmd打开
执行命令:
java -jar springboot-base-quick-01-1.0-SNAPSHOT.jar
浏览器访问:
http://127.0.0.1:8080/hello/boot3
3、参考
151-springboot-boot工程打包和快速部署命令_哔哩哔哩_bilibili