springspring-bootspring-cloud-configspring-properties

spring cloud configuration vs local properties


I have a spring boot application with application.yaml, also I gonna switch a Spring Cloud Config Server on.

The question is: which properties of these 2 above have a priority?


Solution

  • A Spring application can use a Config Server as a property source.

    Properties from a Config Server will override those defined locally (e.g. via an application.yml in the classpath).