我是靠谱客的博主 搞怪樱桃,这篇文章主要介绍yml文件有带“-”的表示与转成properties文件,现在分享给大家,希望可以做个参考。

yml 和properties互转网站
https://www.toyaml.com/index.html

先看个yml带“-”的例子

复制代码
1
2
3
4
5
6
7
8
spring: user: - id: 123 name: woniu - id: 456 name: woniu2

带“-”表示是数组的首个元素,转成properties

复制代码
1
2
3
4
5
spring.user[0].id=123 spring.user[0].name=woniu spring.user[1].id=456 spring.user[1].name=woniu2

最后

以上就是搞怪樱桃最近收集整理的关于yml文件有带“-”的表示与转成properties文件的全部内容,更多相关yml文件有带“-”内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(61)

评论列表共有 0 条评论

立即
投稿
返回
顶部