Explain the configuration and use of spring boot properties in detail
Spring boot allows you to use the same application code in different environments through external configuration. In short, you can inject properties or modify the default configuration through the configuration file.
Spring boot supports a variety of external configuration methods
The priorities of these methods are as follows:
Command line parameters
Through Java - jar app jar --name="Spring" --server. Port = 9090 to pass parameters.
Parameters are passed in the form of -- XXX = XXX.
The parameters that can be used can be defined by ourselves or the default parameters in spring boot.
Many people may be concerned about how to configure the web port. These are the parameters provided in spring boot. Some of the available parameters are as follows:
For more common application properties, please browse here
The above is the content of spring boot attribute configuration and use. For some incompleteness or readers have more questions, you can check the complete spring boot documentation or externalized configuration. I hope it will help you in your study, and I also hope you can support programming tips.