What spring boot configuration file is the core?

Spring Boot There are two types of configuration files, application files and bootstrap
Spring Boot will automatically load these two files in the current classpath, the file format for the properties or yml format

* .properties files in the form of key = value of
* .yml is key: in the form of value of
* .yml loaded property is in order, but does not support @PropertySource comment to import configuration, the general recommended yml file, look down more image

bootstrap system level configuration file is used to load external configuration, such as configuration information center, may be used to define the system load does not change the properties of the file before the application .bootstatp document
application profile is an application-level, it is the current application configuration file

 

reference:


Description link
 


 

 

Guess you like

Origin www.cnblogs.com/ConstXiong/p/12143166.html