Home > Java > javaTutorial > How to make the configuration file take effect in springboot

How to make the configuration file take effect in springboot

王林
Release: 2023-05-12 13:31:13
forward
1770 people have browsed it

How to make the configuration file take effect in springboot

There can be multiple configuration files in springboot. The configuration file can be a file ending in .properties or yml, and the configuration file has priority. The same type of configuration application.properties takes precedence. The level is relatively high, and different types of configurations will take effect at the same time.

How to make the configuration file take effect in springboot

How to make the configuration file take effect in springboot

You can also customize the configuration file and name it whatever you want, but the suffix must be as required! The background can also bind values ​​to properties through the @Value ("${key}") annotation;

The above is the detailed content of How to make the configuration file take effect in springboot. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template