类 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.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
ProjectInfoAutoConfiguration
public ProjectInfoAutoConfiguration(ProjectInfoProperties properties)
方法详细资料
gitProperties
@Conditional(org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration.GitResourceAvailableCondition.class) @ConditionalOnMissingBean @Bean public org.springframework.boot.info.GitProperties gitProperties() throws Exception
- 抛出:
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
- 抛出:
Exception
loadFrom
protected Properties loadFrom(org.springframework.core.io.Resource location, String prefix, Charset encoding) throws IOException
- 抛出:
IOException