类 BuildProperties
- java.lang.Object
- org.springframework.boot.info.InfoProperties
- org.springframework.boot.info.BuildProperties
- 所有已实现的接口:
Iterable<InfoProperties.Entry>
public class BuildProperties extends InfoProperties
Provide build-related information such as group and artifact.- 从以下版本开始:
- 1.4.0
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.info.InfoProperties
InfoProperties.Entry
构造器概要
构造器 构造器 说明 BuildProperties(Properties entries)
Create an instance with the specified entries.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getArtifact()
Return the artifactId of the project ornull
.String
getGroup()
Return the groupId of the project ornull
.String
getName()
Return the name of the project ornull
.Instant
getTime()
Return the timestamp of the build ornull
.String
getVersion()
Return the version of the project ornull
.从类继承的方法 org.springframework.boot.info.InfoProperties
get, getInstant, iterator, toPropertySource
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 java.lang.Iterable
forEach, spliterator
构造器详细资料
BuildProperties
public BuildProperties(Properties entries)
Create an instance with the specified entries.- 参数:
entries
- the information to expose
方法详细资料
getArtifact
public String getArtifact()
Return the artifactId of the project ornull
.- 返回:
- the artifact
getVersion
public String getVersion()
Return the version of the project ornull
.- 返回:
- the version
getTime
public Instant getTime()
Return the timestamp of the build ornull
.If the original value could not be parsed properly, it is still available with the
time
key.- 返回:
- the build time
- 另请参阅:
InfoProperties.get(String)