@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=ProjectInfoProperties.class) public class ProjectInfoAutoConfiguration extends java.lang.Object
Auto-configuration for various project information.| Constructor and Description |
|---|
ProjectInfoAutoConfiguration(ProjectInfoProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.info.BuildProperties |
buildProperties() |
org.springframework.boot.info.GitProperties |
gitProperties() |
protected java.util.Properties |
loadFrom(org.springframework.core.io.Resource location,
java.lang.String prefix,
java.nio.charset.Charset encoding) |
public ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
@Conditional(value=org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration.GitResourceAvailableCondition.class) @ConditionalOnMissingBean @Bean public org.springframework.boot.info.GitProperties gitProperties() throws java.lang.Exception
java.lang.Exception@ConditionalOnResource(resources="${spring.info.build.location:classpath:META-INF/build-info.properties}") @ConditionalOnMissingBean @Bean public org.springframework.boot.info.BuildProperties buildProperties() throws java.lang.Exception
java.lang.Exceptionprotected java.util.Properties loadFrom(org.springframework.core.io.Resource location,
java.lang.String prefix,
java.nio.charset.Charset encoding)
throws java.io.IOException
java.io.IOException