类 BuildProperties
java.lang.Object
org.springframework.boot.info.InfoProperties
org.springframework.boot.info.BuildProperties
- 所有已实现的接口:
Iterable<InfoProperties.Entry>
@ImportRuntimeHints(org.springframework.boot.info.BuildProperties.BuildPropertiesRuntimeHints.class)
public class BuildProperties
extends InfoProperties
Provide build-related information such as group and artifact.
- 从以下版本开始:
- 1.4.0
- 作者:
- Stephane Nicoll
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.info.InfoProperties
InfoProperties.Entry
-
构造器概要
构造器 -
方法概要
从类继承的方法 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
Create an instance with the specified entries.- 参数:
entries
- the information to expose
-
-
方法详细资料
-
getGroup
Return the groupId of the project ornull
.- 返回:
- the group
-
getArtifact
Return the artifactId of the project ornull
.- 返回:
- the artifact
-
getName
Return the name of the project ornull
.- 返回:
- the name
-
getVersion
Return the version of the project ornull
.- 返回:
- the version
-
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
- 另请参阅:
-