yml在线格式转换工具(properties)

分享一个在线properties 转 yml工具,也支持yml转properties,spring

域名很是简单好记,直接在地址栏里输入toyaml.com,地址:http://toyaml.com/springboot

 

yml,即yaml文本格式文件的后缀名,yaml能够用来替代properties,可读性更好一些。app

目前spring boot的配置文件已经同时支持properties和yaml格式。工具

properties中的格式通常均可以转换为yaml格式。网站

如在properties中一段内容为:code

spring.application.name=MyProject
spring.application.admin.enabled=false

那么yaml格式则变为:blog

spring:
    application:
        admin:
            enabled: false
        name: MyProject

注意冒号后边有个空格。get

 

上边这个网站能够帮助咱们快速将properties转换为方便阅读的yaml格式,或直接在springboot中做为配置文件使用:域名

 

虽然看起来比较简陋,可是核心功能仍是很强悍的。io

(完毕)

相关文章
相关标签/搜索