进入项目目录,执行 build 命令:
npm run build该命令执行成功之后,项目目录下生成一个dist文件夹:
将该文件夹中的两个文件static和index.html拷贝到SpringBoot项目中resources/static/目录下,然后就可以通过http://localhost:{port}/index.html访问vue项目。
三十六、Springboot整合Vue
阅读 46
2022-06-21
进入项目目录,执行 build 命令:
npm run build该命令执行成功之后,项目目录下生成一个dist文件夹:
将该文件夹中的两个文件static和index.html拷贝到SpringBoot项目中resources/static/目录下,然后就可以通过http://localhost:{port}/index.html访问vue项目。
相关推荐
精彩评论(0)