进入项目目录,执行 build 命令:
npm run build
该命令执行成功之后,项目目录下生成一个dist文件夹:
将该文件夹中的两个文件static
和index.html
拷贝到SpringBoot项目中resources/static/
目录下,然后就可以通过http://localhost:{port}/index.html
访问vue项目。
微信扫一扫
进入项目目录,执行 build 命令:
npm run build
该命令执行成功之后,项目目录下生成一个dist文件夹:
将该文件夹中的两个文件static
和index.html
拷贝到SpringBoot项目中resources/static/
目录下,然后就可以通过http://localhost:{port}/index.html
访问vue项目。
相关推荐