Automatic configuration of springboot and application.yml

We need to know that when springboot starts, it will be automatically configured, find meta-inf/spring. Factors , and load it into the IOC container

enter the file and find any class
click in<

see the @ enableconfigurationproperties ({serverproperties. Class}) annotation
click in serverproperties. Class

this means that the class is bound to the application.yml file
in which the value of prefix represents the

in the YML file All kinds of properties of this class are those of this class

the above is spring boot auto configuration and application. YML contact!!!

Read More: