Нет статического ресурса swagger-ui/index.html с Spring-boot-starter-parent с 3.2.10 и Springdoc-openapi-starter-webfluxJAVA

Программисты JAVA общаются здесь
Anonymous
Нет статического ресурса swagger-ui/index.html с Spring-boot-starter-parent с 3.2.10 и Springdoc-openapi-starter-webflux

Сообщение Anonymous »

Невозможно загрузить пользовательский интерфейс Swagger и появляется следующая ошибка после обновления до Spring Boot 3.2.10 и Springdoc-openapi-starter-webflux-ui 2.2.0:
org.springframework.web.servlet.resource.NoResourceFoundException: No static resource swagger-ui/index.html.

Ниже приведены используемые конфигурации:
зависимости pom:


org.springframework.boot
spring-boot-starter-parent
3.2.10




org.springdoc
springdoc-openapi-starter-webflux-ui
2.2.0


org.yaml
snakeyaml





конфигурация Swagger:
@Configuration
public class SwaggerConfig {

@Value("${Host:}")
private String configUrl;

@Bean
public OpenAPI OpenApi() {
Contact contact = new Contact();
contact.setName("Team ");
contact.setEmail("email.com");
OpenAPI openAPI = new OpenAPI();
if (StringUtils.isNotEmpty(configUrl)) {
openAPI.addServersItem(
new Server().url(configUrl));
}
openAPI.info(new Info().title(" Scheduler API")
.description("To schedulejobs").version("0.0.1-SNAPSHOT")
.contact(contact)

);

return openAPI;
}
}



Подробнее здесь: https://stackoverflow.com/questions/790 ... ent-with-3

Вернуться в «JAVA»