Class ProjectInfoAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration
@Configuration @EnableConfigurationProperties(ProjectInfoProperties.class) public class ProjectInfoAutoConfiguration extends Object
Auto-configuration
for 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.BuildProperties
buildProperties()
org.springframework.boot.info.GitProperties
gitProperties()
protected Properties
loadFrom(org.springframework.core.io.Resource location, String prefix, Charset encoding)
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, Charset encoding) throws IOException
- Throws:
IOException