Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrate text box

...

Warning

Properties supplied to the runtime through the config server take precedence over all other property sources. This may be changed changed by setting the one of the following properties:

  • spring.cloud.config.allowOverride=[true|false] (false for lowest priority)
  • spring.cloud.config.overrideNone=[true|false] (true for highest priority)
  • spring.cloud.config.overrideSystemProperties=[true|false] (true for higher priority than system properties, false for lower priority than system properties)

For any of these properties to have effect, they must be specified in a property file hosted by the config server. For example in

Include Page
_PropertiesFileJava
_PropertiesFileJava
in the directory specified by spring.cloud.config.server.native.searchLocations property or in the configured git repository if applicable.

See also http://cloud.spring.io/spring-cloud-static/spring-cloud.html#overriding-bootstrap-properties for more information

...

The property files will either come from the file-system or use GIT.

 

Code Block
titlebootstrap.properties
encrypt.failOnError=false
encrypt.key=IGotTheKey
encrypt.key-store.secret=IGotTheSecret
spring.cloud.config.server.bootstrap=true (*)

...

Code Block
titlebootstrap.properties - extended for using the file-system
spring.profiles.active=native
spring.cloud.config.server.native.searchLocations

 

Code Block
titlebootstrap.properties - extended for using GIT - basic authentication
spring.cloud.config.server.git.uri=https://git.blueriq.com/config-repo.git
spring.cloud.config.server.git.basedir=target/config
spring.cloud.config.server.git.username=<git_username>
spring.cloud.config.server.git.password=<git_password>

...

 * Username and password that will be used for the client to connect to this server.

note
UI Text Box
type
Info

Currently static resources are not managed by the spring cloud config server (for example frontend sources and exports). This may change in a future release.

Further reading

Reading properties from file system

Reading properties from GIT

...