12-SpringBoot3入门-项目打包和运行

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

相关推荐
新手村领路人6 天前
python打包成exe
python·打包
张人玉16 天前
如何使用Advanced Installer打包C#程序生成安装程序
c#·打包·advanced·installer
张人玉16 天前
Visual Studio 2022打包生成exe安装程序
ide·visual studio·打包·installer
BrightMZM1 个月前
记录一下Unity的BUG,Trial Version
unity·bug·打包·trial
weicy2 个月前
旧版本Flutter使用xcode16打包上架时报错
打包·打包错误·审核
EndingCoder2 个月前
打包应用:使用 Electron Forge
前端·javascript·性能优化·electron·前端框架·打包·electron forge
NRatel2 个月前
Unity游戏打包——iOS打包pod的重装和使用
游戏·unity·ios·打包
尸僵打怪兽4 个月前
HBuilder X打包发布微信小程序
微信小程序·小程序·打包·hbuilder x
__water4 个月前
RHA《Unity兼容AndroidStudio打Apk包》
android·unity·jdk·游戏引擎·sdk·打包·androidstudio
就爱瞎逛5 个月前
pnpm link如何不踩坑
pnpm·打包