Page History
Older documentation: Spring Cloud config [editor]
For an explanation about spring cloud config see http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html
Blueriq uses spring cloud config (besides the all the other functionality that spring cloud config uses) for changing/reloading settings via the development plugin.
In the configured folder one can place a application.properties and/or application-debug.properties (and yaml variants) because the default name is application (can be configured via spring.application.name=application) These are the files that can be edited by the development plugin
Notes:
to be able to edit settings via the development plugin the profile native must also be passed.
To refresh, inject the RefreshScope, dont call the urls
1. Client
Spring config client is integrated in the blueriq-web. .
Client config options
bootstrap.properties
Code Block |
---|
spring: cloud: config: uri: http://localhost:8888 username: <cloud-server-username> (*) password: <cloud-server-password> (*) failFast: true retry: max-attempts: 10 initial-interval: 5000 max-interval: 10000 |
...
application.properties will not contain any property meant for the config client
2. Server
Spring config server will run separately and handle the property files. The client will communicate with the server to get the property files.
...
* Username and password that will be used for the client to connect to this server.
Repository structure
TODO - ongoing discussion
...