Skip to content
Advertisement

Spring Cloud Configuration Server not working with local properties file – getting need to use a composite configuration

I am configuring the new spring config server and getting the below error.

JavaScript

I have tried the below links but no luck
Spring Cloud Config Server configuration with local repository
spring config server- for local git repository
https://medium.com/@danismaz.furkan/spring-cloud-config-with-file-system-backend-c18ae16b7ad5

bootstrap.properties

JavaScript

pom.xml

JavaScript

Advertisement

Answer

You should rename your bootstrap.properties file to application.properties (see Spring Cloud Config Server).

And use native profile like @spencergibb recommended in comments section (see File system backend), either by adding the following line to application.properties

JavaScript

or passing it externally see (Externalized Configuration), e.g.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement