N
N
Consegui resolver.
Estava faltando a anotação @Configuration na classe SpringDocConfigurations
@Configuration
public class SpringDocConfigurations {
@Bean
public OpenAPI customOpenAPI() {
return new OpenAPI()
.components(new Components()
.addSecuritySchemes("bearer-key",
new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer").bearerFormat("JWT")));
}
}