首先进入github查找想要的项目,比如说下面那个
https://github.com/MeetNiceMe/newbee-mall
在你想要的文件夹打开GitHub

输入命令
git clone https://github.com/MeetNiceMe/newbee-mall.git
指定分支
git clone -b zhaoshuai_change https://github.com/MeetNiceMe/newbee-mall.git
如果不会git,可以下载压缩包解压到指定文件夹

然后从idea打开这个项目

然后选择 Trust project
如果maven没有加载,那么点击add maven

然后配置upload资源路径
upload在

把文件解压到想要的路径后再设置相应的路径就行

然后配置环境

配置MySQL数据库地址和端口号

然后执行sql命令,注意MySQL不能是5.5版本

执行sql脚本


执行
然后点击运行

然后打开首页
端口号是你自定义的端口
http://localhost:28089/index.html

这是管理员登录
http://localhost:28089/admin/login
密码都是123456
