小编Bal*_*dam的帖子

设置swagger API版本的动态版本

我试图在下面的注释中使版本动态化。

@SpringBootApplication
@OpenAPIDefinition(info = @Info(title = "Test APIs", version = "${project.version}", description = "Testing APIs"))
public class DemoApplication {

}
Run Code Online (Sandbox Code Playgroud)

在这里,我想让版本动态化,这样它将从 pom.xml 文件中获取值。

我需要为此进行任何配置吗?TIA。

annotations swagger swagger-ui spring-boot openapi

2
推荐指数
1
解决办法
3775
查看次数

标签 统计

annotations ×1

openapi ×1

spring-boot ×1

swagger ×1

swagger-ui ×1