Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Spring config client is integrated in the blueriq-web. .

Client config options

bootstrap.properties

...

Code Block

...

spring:

...


  cloud:

...

    config:

...


    config:
      uri: http://localhost:8888

...


      username: <cloud-server-username>

...


      password: <cloud-server-password>

...


      failFast:

...

      retry:

...

 true
      retry:
        max-attempts:

...

 10
        initial-interval:

...

 5000
        max-interval: 10000

{code}

 

application.properties will not contain any property meant for the config client

 

pom.xml needs the following dependencies

Code Block
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.retry</groupId>
    <artifactId>spring-retry</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-aop</artifactId>
</dependency>

 


 

Server

Spring config server will run separately and handle the property files. The client will communicate with the server to get the property files.

...