官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 双牌县| 达日县| 汕头市| 阜康市| 清涧县| 廊坊市| 油尖旺区| 綦江县| 兴国县| 长子县| 鲁山县| 彭阳县| 开封市| 横峰县| 屏边| 乐陵市| 托克逊县| 江油市| 松桃| 黄梅县| 攀枝花市| 温泉县| 常山县| 云南省| 高阳县| 辽中县| 扬中市| 泉州市| 梁河县| 衡水市| 平凉市| 类乌齐县| 布尔津县| 蒲江县| 麻城市| 莱西市| 巴彦淖尔市| 霍城县| 津市市| 巢湖市| 建昌县|