Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuho authored Jul 16, 2021
1 parent b28e59b commit ef2e354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2021/Q1/springboot24-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class AppNameController {

接著開啟專案中的 `application.properties`, 加上:

```yaml
```properties
spring.application.name=MyApp
```

Expand All @@ -118,7 +118,7 @@ Hello MyApp

通常在雲平台中, 都有提供 volume mounted 功能將設定檔 mount 至 Container 中, 因此現在我們需要配置一個目錄給之後 mount config 用, 開啟 `application.properties` 加上

```
```properties
spring.config.import=optional:file:/tmp/config/
```

Expand Down

0 comments on commit ef2e354

Please sign in to comment.