我的招摇定义中有一个apiKey:
securityDefinition = @SecurityDefinition(
apiKeyAuthDefinitions = {@ApiKeyAuthDefinition(
key= "test",
in = ApiKeyAuthDefinition.ApiKeyLocation.HEADER,
name = "X-AUTH-TOKEN",
description = "LHT-AM API KEY"
)}
)
所以SwaggerUI正确提供授权。
但我如何告诉SwaggerUI从标题中自动填写此授权?