- Mastering Spring Boot 2.0
- Dinesh Rajput
- 72字
- 2021-06-25 21:29:16
YAML for properties
Spring Boot supports YAML for properties as an alternative to properties files. YAML is convenient for hierarchical configuration data. Spring Boot properties are organized in groups, for example, server, database, and so on.
Let's see the following properties:
- In application.properties:
database.host = localhost database.user = admin
- In application.yml:
database: host: localhost user: admin
Let's see, in the following section, how to define multiple profiles in a single YAML file.
推薦閱讀
- 完全掌握Office 2010高效辦公超級手冊
- Word/Excel 2010辦公應(yīng)用從入門到精通
- Office 2019高效辦公三合一從入門到精通(視頻自學版)
- Excel公式與函數(shù)從入門到精通
- Excel大神是怎么做表的
- 和秋葉一起學:秒懂Word(全彩版)
- Excel經(jīng)典教程:公式與函數(shù)
- 大話PPT:幻燈片制作真經(jīng)
- AI智能辦公實戰(zhàn)108招:ChatGPT+Word+PowerPoint+WPS
- Word/Excel/PPT 2007入門與提高
- DPDK應(yīng)用基礎(chǔ)
- 別怕,Excel VBA其實很簡單
- 隨身查:Office辦公高手應(yīng)用技巧
- Word\Excel\PowerPoint2013三合一高效辦公應(yīng)用/微課堂學電腦
- Angular Projects