为User-Agent添加必要的版本信息

This commit is contained in:
648540858
2022-09-09 23:19:19 +08:00
parent 221f99c764
commit 243edbd143
12 changed files with 76 additions and 34 deletions

View File

@@ -19,9 +19,16 @@ public class GitUtil {
private String gitUrl;
@Value("${git.build.time:null}")
private String buildDate;
@Value("${git.build.version:null}")
private String buildVersion;
@Value("${git.commit.id.abbrev:null}")
private String commitIdShort;
@Value("${git.commit.time:null}")
private String commitTime;
public String getGitCommitId() {
return gitCommitId;
}
@@ -41,4 +48,12 @@ public class GitUtil {
public String getCommitIdShort() {
return commitIdShort;
}
public String getBuildVersion() {
return buildVersion;
}
public String getCommitTime() {
return commitTime;
}
}