将vue打包的dist部署到springboot项目中(前后端不分离)
首先将打包好的dist文件夹放到resources下然后在yml文件中配置spring:web:resources:static-locations: "classpath:/dist"运行程序然后访问lip:port/index.htm即可
·
首先将打包好的dist文件夹放到resources下
然后在yml文件中配置
spring:
web:
resources:
static-locations: "classpath:/dist"
运行程序然后访问lip:port/index.htm
即可
更多推荐
所有评论(0)