下载完renren前后端分离包前端输入命令在vs打开renren-fast-vue文件夹控制台运行命令npm install node-sassnpm:sass --ignore-scriptsnpm install --legacy-peer-deps启动前端npm run dev在idea中打开renren-fast文件夹修改pom文件之前的parent改为com.atguigu.gulimallgulimall0.0.1-SNAPSHOT…/pom.xml将db文件夹中mysql数据库脚本运行到新建的gulimall_admin数据库修改数据库连接数据库名用户密码启动项目访问http://localhost:8001/下载renren-generator修改数据库连接数据库名称用户密码修改配置中的spring:你的父工程是 Spring Boot 2.6.6而 renren-generator 里还是旧写法spring.resources.static-locations 在新版本里应改为 spring.web.resources.static-locations。旧键不生效时/views 下的 index.html/main.html/generator.html 都不会被当静态资源暴露于是访问就 404Whitelabel。jackson: time-zone: GMT8 date-format: yyyy-MM-dd HH:mm:ss resources: static-locations: classpath:/static/,classpath:/views/ #改为 web: resources: static-locations: classpath:/static/,classpath:/views/