@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(org.springframework.core.io.Resource location,
String prefix,
Charset encoding) |
public ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
@Conditional(value=org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration.GitResourceAvailableCondition.class) @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(org.springframework.core.io.Resource location, String prefix, Charset encoding) throws IOException
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.