From c095f28d57aba3f132c900d06392d3f417a44b30 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Wed, 26 Mar 2025 13:20:15 +0400 Subject: [PATCH] Fix swagger --- build.gradle | 2 +- .../configuration/SwaggerConfiguration.java | 21 ------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 src/main/java/ru/ulstu/configuration/SwaggerConfiguration.java diff --git a/build.gradle b/build.gradle index 9115dfe..2f5f5f2 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ dependencies { implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations' implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310' - implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.6.5' + implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.8.4' implementation group: 'org.webjars', name: 'jquery', version: '3.6.0' implementation group: 'org.webjars', name: 'bootstrap', version: '4.6.0' diff --git a/src/main/java/ru/ulstu/configuration/SwaggerConfiguration.java b/src/main/java/ru/ulstu/configuration/SwaggerConfiguration.java deleted file mode 100644 index 005acb6..0000000 --- a/src/main/java/ru/ulstu/configuration/SwaggerConfiguration.java +++ /dev/null @@ -1,21 +0,0 @@ -package ru.ulstu.configuration; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springdoc.core.GroupedOpenApi; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@Configuration -public class SwaggerConfiguration { - private final Logger log = LoggerFactory.getLogger(SwaggerConfiguration.class); - - @Bean - public GroupedOpenApi swaggerApi() { - log.info("Creating Swagger API configuration bean"); - return GroupedOpenApi.builder() - .group("timetable-api") - .pathsToMatch(ApiConfiguration.API_1_0 + "**") - .build(); - } -}