- 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.
推薦閱讀
- Excelize權(quán)威指南
- Oracle CX Cloud Suite
- Word/Excel/PPT 商務(wù)辦公效率手冊(cè):從小白到辦公大神
- 精通Excel數(shù)據(jù)統(tǒng)計(jì)與分析
- Excel商務(wù)圖表應(yīng)用與技巧108例
- Word/Excel/PPT 2019應(yīng)用大全
- Excel函數(shù)與公式應(yīng)用技巧
- 中文版Office2016大全
- Excel市場(chǎng)分析應(yīng)用之道
- Intuit QuickBooks Enterprise Edition 12.0 Cookbook for Experts
- 精英演示:PPT的商務(wù)演示藝術(shù)
- Excel 2013從新手到高手
- 電腦急救完全DIY
- PowerPoint 2010從新手到高手
- 極簡辦公:職場(chǎng)Word基礎(chǔ)課