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
转载请注明原文地址:https://ipadbbs.8miu.com/read-25893.html