mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: Swagger API version keep up-to-date with POM version #139
This commit is contained in:
parent
85b8d004e4
commit
dfd2106a3f
@ -32,7 +32,7 @@ public class SwaggerConfig {
|
|||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public Docket createRestApi() {
|
public Docket createRestApi() {
|
||||||
String version = "Unknown";
|
String version = "unknown";
|
||||||
if (buildProperties != null) {
|
if (buildProperties != null) {
|
||||||
String pomVersion = buildProperties.getVersion();
|
String pomVersion = buildProperties.getVersion();
|
||||||
if (StringUtils.isNotBlank(pomVersion)) {
|
if (StringUtils.isNotBlank(pomVersion)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user