Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Case Analysis of priority problem of bootstrap.yml and bootstrap.properties

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of bootstrap.yml and bootstrap.properties priority case analysis, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this bootstrap.yml and bootstrap.properties priority case analysis article. Let's take a look at it.

Bootstrap.yml and bootstrap.properties priority

It is concluded directly that bootstrap.properties is superior to bootstrap.yml.

In fact, many articles have written that bootstrap is better than application, and * .properties is better than *. Yml, which I will not repeat.

problem

The problem is that I found a more coquettish thing, the maven project relies on other projects, this project uses yml configuration, and depends on other projects using properties. At this point, the properties of the dependent project is enabled.

? Why the dependent configuration will be loaded by this project is too great.

The easiest solution is to use bootstrap.properties as much as possible.

At least uniformly use the same suffix!

Bootstrap.yml and application.yml loading order

Bootstrap.yml (bootstrap.properties) is used to execute when the program is booted and to read earlier configuration information, such as parameters that can be used to configure application.yml.

Application.yml (application.properties) application-specific configuration information can be used to configure common parameters to be used in subsequent modules.

Bootstrap.yml loads before application.yml

This is the end of the article on "case Analysis of priority issues of bootstrap.yml and bootstrap.properties". Thank you for reading! I believe you all have a certain understanding of the knowledge of "bootstrap.yml and bootstrap.properties priority case Analysis". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report