課程
/后端開發
/Java
/2小時學會Spring Boot
yml文件中可以寫一些注釋嗎?怎么寫注釋???
2017-05-18
源自:2小時學會Spring Boot
正在回答
YAML 中添加注釋的方式是通過 #:
#行末評論"symfony 1.0": { PHP: 5.0, Propel: 1.2 } # Comment at the end of a line"symfony 1.2": { PHP: 5.2, Propel: 1.3 }
由于注釋會被YAML解析器忽略,因此不必刻意對注釋進行縮進。
用#可以
舉報
Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-06-30
YAML 中添加注釋的方式是通過 #:
#行末評論
"symfony 1.0": { PHP: 5.0, Propel: 1.2 } # Comment at the end of a line
"symfony 1.2": { PHP: 5.2, Propel: 1.3 }
由于注釋會被YAML解析器忽略,因此不必刻意對注釋進行縮進。
2017-05-21
用#可以