This article is a mirror article of machine translation, please click here to jump to the original article.

View: 62677|Reply: 18

[Source] application.properties to convert application.yml files

[Copy link]
Posted on 8/22/2018 11:21:51 AM | | | |
What's the difference between an application.properties file and an application.yml file?

The benefits of YML files, the natural tree-like structure, are clear at a glance and are essentially similar to properties.

Many of the demos given by the official are configured with yml files.

Notes:

1. The original key, such as spring.jpa.properties.hibernate.dialect, press "." Split, all become tree-like configurations

2. The colon after the key must be followed by a space

3. Delete the original application.properties. Then be sure to do maven -X clean install

Example:


Finally, attach the widget you wrote to convert properties to yml format, the screenshot is as follows:



YAML, YML online formatting verification tool:http://www.bejson.com/validators/yaml/

java-tools tool download:

Tourists, if you want to see the hidden content of this post, pleaseReply






Previous:Spring Boot application.yml application.properties priority
Next:The web server returns the status code type and meaning
Posted on 8/22/2018 1:12:15 PM |
For detailed usage of YAML, please refer to the official documentationhttps://docs.spring.io/spring-bo ... xternal-config-yaml
Posted on 12/29/2018 10:55:52 AM |
Prompt:Authors are banned or removed content is automatically blocked
Posted on 4/28/2019 11:43:57 AM |
Thanks application.properties for converting the application.yml file
Posted on 11/20/2018 11:05:17 AM |
Support one, thank you landlord
Posted on 12/7/2018 3:02:34 PM |
Support the landlord
Posted on 3/11/2019 3:07:33 PM |

Support one, thank you landlord
Posted on 4/4/2019 7:06:06 PM |
Boss, can you write a detailed idea?
Posted on 4/10/2019 1:21:14 PM |
Thank you so much
Posted on 4/24/2019 9:05:18 PM |
Thank you for sharing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com