diff --git a/README.md b/README.md index 0534b84..18710b6 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ mvn clean package 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` 中配置的端口)。 ### 3.3. 前端应用 (charging_web_app)