Commit Graph

5 Commits

Author SHA1 Message Date
Mark Paluch
a929a08d16 Polishing.
Enhance JavaDoc.
2016-09-24 22:09:22 +02:00
Mark Paluch
19ea723649 Add VaultPropertySource support.
Spring Vault now supports VaultPropertySource. Property sources can be registered programatically to be used with Spring's Property source abstraction. @VaultPropertySource can be declared on @Configuration classes to obtain properties from Vault and expose these properties inside Spring's Environment.

@Configuration
@VaultPropertySource("secret/my-application")
public class AppConfig {

    @Autowired Environment env;

    @Bean
    public TestBean testBean() {
        TestBean testBean = new TestBean();
        testBean.setPassword(env.getProperty("database.password"));
        return testBean;
    }
}

Fixes gh-9.
2016-09-24 22:09:11 +02:00
Mark Paluch
d8e2c22ae1 Provide documenation as zip file.
Fixes gh-5.
2016-09-19 22:56:19 +02:00
Mark Paluch
9ac40d2695 Polishing.
Add CI profile. Move spring-test dependency management from bom to main pom.
2016-09-19 20:35:48 +02:00
Mark Paluch
b5e09f2d53 Initial import. 2016-09-14 08:51:14 +02:00