Skip to content

Commit 627df67

Browse files
committed
Merge branch 'fix-dep-class' of https://github.com/mosesonline/springdoc-openapi into mosesonline-fix-dep-class
2 parents c39466e + 90145a0 commit 627df67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

springdoc-openapi-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWebMvcConfigurer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springdoc.core.providers.ActuatorProvider;
2727

2828
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
29-
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
29+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
3030

3131
import static org.springdoc.core.Constants.CLASSPATH_RESOURCE_LOCATION;
3232
import static org.springdoc.core.Constants.DEFAULT_WEB_JARS_PREFIX_URL;
@@ -38,7 +38,7 @@
3838
* @author bnasslahsen
3939
*/
4040
@SuppressWarnings("deprecation")
41-
public class SwaggerWebMvcConfigurer extends WebMvcConfigurerAdapter { // NOSONAR
41+
public class SwaggerWebMvcConfigurer implements WebMvcConfigurer { // NOSONAR
4242

4343
/**
4444
* The Swagger path.
@@ -78,7 +78,7 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
7878
if (actuatorProvider.isPresent() && actuatorProvider.get().isUseManagementPort())
7979
uiRootPath.append(actuatorProvider.get().getBasePath());
8080

81-
registry.addResourceHandler(uiRootPath +SWAGGER_UI_PREFIX +"*/**")
81+
registry.addResourceHandler(uiRootPath + SWAGGER_UI_PREFIX + "*/**")
8282
.addResourceLocations(CLASSPATH_RESOURCE_LOCATION + DEFAULT_WEB_JARS_PREFIX_URL + DEFAULT_PATH_SEPARATOR)
8383
.resourceChain(false)
8484
.addTransformer(swaggerIndexTransformer);

0 commit comments

Comments
 (0)