Class 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