From ef2e35493f7fe36ca777b3407dff7091b8889d09 Mon Sep 17 00:00:00 2001 From: Shihyu Date: Fri, 16 Jul 2021 17:47:00 +0800 Subject: [PATCH] Update README.md --- 2021/Q1/springboot24-config/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2021/Q1/springboot24-config/README.md b/2021/Q1/springboot24-config/README.md index 6800e8c..166897d 100644 --- a/2021/Q1/springboot24-config/README.md +++ b/2021/Q1/springboot24-config/README.md @@ -103,7 +103,7 @@ public class AppNameController { 接著開啟專案中的 `application.properties`, 加上: -```yaml +```properties spring.application.name=MyApp ``` @@ -118,7 +118,7 @@ Hello MyApp 通常在雲平台中, 都有提供 volume mounted 功能將設定檔 mount 至 Container 中, 因此現在我們需要配置一個目錄給之後 mount config 用, 開啟 `application.properties` 加上 -``` +```properties spring.config.import=optional:file:/tmp/config/ ```