@Configuration @EnableConfigurationProperties(value=ProjectInfoProperties.class) public class ProjectInfoAutoConfiguration extends Object
Auto-configuration
for various project information.Constructor and Description |
---|
ProjectInfoAutoConfiguration(ProjectInfoProperties properties) |
Modifier and Type | Method and Description |
---|---|
BuildProperties |
buildProperties() |
GitProperties |
gitProperties() |
protected Properties |
loadFrom(Resource location,
String prefix) |
public ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
@ConditionalOnMissingBean @Bean public GitProperties gitProperties() throws Exception
Exception
@ConditionalOnResource(resources="${spring.info.build.location:classpath:META-INF/build-info.properties}") @ConditionalOnMissingBean @Bean public BuildProperties buildProperties() throws Exception
Exception
protected Properties loadFrom(Resource location, String prefix) throws IOException
IOException
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.