但我不知道如何配置将授权添加到api请求中。swaggerUi.api.clientAuthorizations.add("key", new SwaggerClient.ApiKeyAuthorization("Authorization", "Basic dXNlcm5hbWU6cGFzc3dvcmQ
使用API-First开发和JWT不发送授权头来生成一个使用jhipster@6.2.0的项目。api.yml (添加/api prefix和pet路径/模式的默认生成)# This file will be used atcompile time to generate Spring-MVC endpoint stubs using openapi-generator
openapi:
我的OpenAPI配置 @Bean
public OpenAPI customOpenAPI(OpenApiConfig config) {return new OpenAPI().addSecurityItem(new SecurityRequirement().addList("security-schemes"))