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

Externalizing application configuration

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

Contents


More Related Answers

  • Externalized Configuration

  • Externalizing application configuration

    0

    Default properties provided by Spring Boot’s SpringApplication.setDefaultProperties() method.

    @PropertySource-annotated @Configuration classes.

    Config data (such as application.properties files).

    A RandomValuePropertySource that has properties only in random.*.

    OS environment variables.

    Java system properties (System.getProperties()).

    JNDI attributes from java:comp/env.

    ServletContext init parameters.

    ServletConfig init parameters.

    Properties from SPRING_APPLICATION_JSON (inline JSON embedded in an environment variable or system property).

    Command-line arguments.

    The properties attribute on your tests. This is available with the @SpringBootTest annotation and also slice-based testing (which we’ll cover later in Chapter 5, Testing with Spring Boot).

    @TestPropertySource annotations on your tests.

    DevTools global settings properties (the $HOME/.config/spring-boot directory when Spring Boot DevTools is active).

    https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/boot-features-external-config.html

    Popularity 1/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.