mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
Change version judgement info.
This commit is contained in:
parent
5329fba6b0
commit
ef881cfcac
@ -34,7 +34,10 @@ public class SwaggerConfig {
|
||||
public Docket createRestApi() {
|
||||
String version = "Unknown";
|
||||
if (buildProperties != null) {
|
||||
version = StringUtils.trimToEmpty(buildProperties.getVersion());
|
||||
String pomVersion = buildProperties.getVersion();
|
||||
if (StringUtils.isNotBlank(pomVersion)) {
|
||||
version = pomVersion;
|
||||
}
|
||||
}
|
||||
// apiInfo()用来创建该Api的基本信息(这些基本信息会展现在文档页面中
|
||||
ApiInfo apiInfo = new ApiInfoBuilder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user