Class ProjectInfoAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration
@Configuration @EnableConfigurationProperties(ProjectInfoProperties.class) public class ProjectInfoAutoConfiguration extends Object
Auto-configurationfor various project information.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.info.BuildPropertiesbuildProperties()org.springframework.boot.info.GitPropertiesgitProperties()protected PropertiesloadFrom(org.springframework.core.io.Resource location, String prefix)
Constructor Detail
ProjectInfoAutoConfiguration
public ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
Method Detail
gitProperties
@Conditional(org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration.GitResourceAvailableCondition.class) @ConditionalOnMissingBean @Bean public org.springframework.boot.info.GitProperties gitProperties() throws Exception
- Throws:
Exception
buildProperties
@ConditionalOnResource(resources="${spring.info.build.location:classpath:META-INF/build-info.properties}") @ConditionalOnMissingBean @Bean public org.springframework.boot.info.BuildProperties buildProperties() throws Exception
- Throws:
Exception
loadFrom
protected Properties loadFrom(org.springframework.core.io.Resource location, String prefix) throws IOException
- Throws:
IOException