0
点赞
收藏
分享

微信扫一扫

三十六、Springboot整合Vue

田妞的读书笔记 2022-06-21 阅读 45

进入项目目录,执行 build 命令:

npm run build

该命令执行成功之后,项目目录下生成一个dist文件夹:
三十六、Springboot整合Vue_spring
将该文件夹中的两个文件​​​static​​​和​​index.html​​​拷贝到SpringBoot项目中​​resources/static/​​​目录下,然后就可以通过​​http://localhost:{port}/index.html​​​访问vue项目。
三十六、Springboot整合Vue_html_02


举报

相关推荐

0 条评论