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