Class ProjectInfoAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(ProjectInfoProperties.class)
public class ProjectInfoAutoConfiguration
extends Object
Auto-configuration
for various project information.- Since:
- 1.4.0
- Author:
- Stephane Nicoll, Madhura Bhave
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ProjectInfoAutoConfiguration
-
-
Method Details
-
gitProperties
@Conditional(org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration.GitResourceAvailableCondition.class) @ConditionalOnMissingBean @Bean public GitProperties gitProperties() throws Exception- Throws:
Exception
-
buildProperties
@ConditionalOnResource(resources="${spring.info.build.location:classpath:META-INF/build-info.properties}") @ConditionalOnMissingBean @Bean public BuildProperties buildProperties() throws Exception- Throws:
Exception
-
loadFrom
protected Properties loadFrom(Resource location, String prefix, Charset encoding) throws IOException - Throws:
IOException
-