From 762cf0a43c5f6fca6709e1f7e0a1a60a1d0b5b5e Mon Sep 17 00:00:00 2001 From: Rachioff <141917244+Rachioff@users.noreply.github.com> Date: Thu, 25 Dec 2025 18:15:36 +0800 Subject: [PATCH] docs: fix completeness issue in README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 191cdef..eee74ba 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,18 @@ 在生产环境部署项目,参见 [PatpatDeploy](https://github.com/JavaEE-PatPatOnline/PatpatDeploy)。 -在本地运行项目,同样需要先在服务器或本地配置好 MySQL 和 RabbitMQ,在 IntelliJ IDEA 中创建运行配置,添加命令行参数 `--spring.profiles.active=dev`,并添加如下环境变量。 +在本地运行项目,首先需要克隆并构建项目。 + +```bash +# 克隆仓库 +git clone https://github.com/JavaEE-PatPatOnline/PatBoot.git +cd PatBoot + +# 使用 Maven 构建项目 +mvn clean install +``` + +构建完成后,需要在服务器或本地配置好 MySQL 和 RabbitMQ,在 IntelliJ IDEA 中创建运行配置,添加命令行参数 `--spring.profiles.active=dev`,并添加如下环境变量。 - MySQL - `MYSQL_HOST`: The host of the MySQL server @@ -41,4 +52,4 @@ ## 贡献代码 -如果你想让 PatBoot 继续运行下去,欢迎加入我们维护该项目,具体参考 [CONTRIBUTING.md](CONTRIBUTING.md)。 +如果你想让 PatBoot 继续运行下去,欢迎加入我们维护该项目,具体参考 [CONTRIBUTING.md](CONTRIBUTING.md)。 \ No newline at end of file