springboot+vue部署到nginx(个人测试)

    技术2022-07-14  84

    vue项目修改生产环境的端口运行 npm run build将生成的dist文件拷贝出来springboot 生产jar下载nginx http://nginx.org/en/download.html将vue生成的dist文件拷到nginx目录下修改nginx.conf文件将springboot生成的jar在cmd运行 java -jar demo.jar启动nginx: start nginx (关闭:nginx -s stop)访问:localhost:8800
    Processed: 0.014, SQL: 9