更新readme

This commit is contained in:
2025-05-24 12:41:33 +08:00
parent 6c80b38e99
commit 82b699bcd6

View File

@@ -73,6 +73,7 @@
mvn clean package mvn clean package
java -jar target/springboot-init-main-0.0.1-SNAPSHOT.jar # 注意替换为实际生成的jar包名 java -jar target/springboot-init-main-0.0.1-SNAPSHOT.jar # 注意替换为实际生成的jar包名
``` ```
* **配置文件外部化**: `application.yml` 在打包时已配置为外部化,并会复制到 `target/config/application.yml`。在生产环境部署时,可以将此文件放置于 JAR 包同级目录的 `config` 文件夹下 (例如: `your_app_dir/config/application.yml`)Spring Boot 将自动加载。或者,您也可以通过 `--spring.config.location` 启动参数来指定外部配置文件的具体路径,例如:`java -jar your_app.jar --spring.config.location=file:/path/to/your/external/application.yml`。
* 服务默认运行在 `http://localhost:7529` (或您在 `application.yml` 中配置的端口)。 * 服务默认运行在 `http://localhost:7529` (或您在 `application.yml` 中配置的端口)。
### 3.3. 前端应用 (charging_web_app) ### 3.3. 前端应用 (charging_web_app)