Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Centralized configuration

Pragya Keshap answered on February 19, 2023 Popularity 4/10 Helpfulness 1/10

Contents


More Related Answers

  • What services can be used to create a centralized logging solution?
  • Centralized Configurations using Spring Cloud Config Server
  • Centralized logging
  • Centralized log analysis

  • Centralized configuration

    0

    Spring Boot provides externalized configuration so that you can use the same code in different environments (for example, the local environment and the Docker environment). We are using YAML files for configuration, which is preferred over using the properties file. Then, you can make use of the @Value annotation to read properties in your code with the POST /actuator/refresh call, or use the object of the class that's annotated with @ConfigurationProperties. Spring Boot's externalized configuration resolves one problem of having different properties for different environments and allows us to use different environments without making any changes.

    The next problem is how to make a change in a property on the fly while keeping all the configuration for different environments in a single place. To achieve more control over configuration management—as in what to keep, what to remove, and what to change—centralized configuration tools could be helpful. There are many tools available, such as Spring Cloud Config, Zookeeper, and Consul. We'll implement centralized configuration using Spring Cloud Config.

    Popularity 4/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 19 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.