当前位置:网站首页>Properties to YML

Properties to YML

2022-06-12 20:19:00 Sword in hand


Share an online properties  turn  yml Tools , Also support yml turn properteis:

 ​http://toyaml.com/​


The domain name is very easy to remember :to yaml .com


yml, namely yaml The suffix of the text format file ,yaml Can be used as an alternative properties, Better readability .

at present spring boot The configuration file of has also supported properties and yaml Format .

properties The format in can generally be converted to yaml Format .

If in properties The first paragraph in is :

       
spring.application.name=MyProject
spring.application.admin.enabled=false
  • 1.
  • 2.


that yaml The format changes to :

       
spring:
application:
admin:
enabled: false
name: MyProject
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.


Notice a space after the colon .


This website above can help us quickly properties Convert to easy to read yaml Format , Or directly in springboot As a configuration file :

properties turn yml_yaml

Although it looks simple , But the core function is still very strong .

( complete )


原网站

版权声明
本文为[Sword in hand]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202281446228033.html