我在 Quarkus 应用程序中有以下 API 定义:
@OpenAPIDefinition(
servers = {
@Server(url = "/")
},
info = @Info(
description = "Description of my interface",
title = "Title of my interface",
version = ".",
contact = @Contact(
name = "Some name",
email = "some email")
))
public class MyApplicationextends Application {}
我现在想将服务器定义移到我的application.properties
(因为我有一个特定的服务器路径,具体取决于环境)。我能够覆盖info.version
using mp.openapi.extensions.smallrye.info.version=1.26.0
。但是我找不到如何覆盖服务器。我尝试过,但生成的文件mp.openapi.extensions.smallrye.servers=https://dummy2
中没有显示任何内容。openapi.yaml
如果这可能?