Class JdbcEnvironmentRepository

java.lang.Object
org.springframework.cloud.config.server.environment.JdbcEnvironmentRepository
All Implemented Interfaces:
EnvironmentRepository, org.springframework.core.Ordered

public class JdbcEnvironmentRepository extends Object implements EnvironmentRepository, org.springframework.core.Ordered
An EnvironmentRepository that picks up data from a relational database. The database should have a table called "PROPERTIES" with columns "APPLICATION", "PROFILE", "LABEL" (with the usual Environment meaning), plus "KEY" and "VALUE" for the key and value pairs in Properties style. Property values behave in the same way as they would if they came from Spring Boot properties files named {application}-{profile}.properties, including all the encryption and decryption, which will be applied as post-processing steps (i.e. not in this repository directly).
Author:
Dave Syer
  • Constructor Details

  • Method Details

    • getSql

      public String getSql()
    • setSql

      public void setSql(String sql)
    • findOne

      public org.springframework.cloud.config.environment.Environment findOne(String application, String profile, String label)
      Specified by:
      findOne in interface EnvironmentRepository
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)
    • isFailOnError

      public boolean isFailOnError()
    • setFailOnError

      public void setFailOnError(boolean failOnError)