File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
springdoc-openapi-ui/src/main/java/org/springdoc/webmvc/ui Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2626import org .springdoc .core .providers .ActuatorProvider ;
2727
2828import 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
3131import static org .springdoc .core .Constants .CLASSPATH_RESOURCE_LOCATION ;
3232import static org .springdoc .core .Constants .DEFAULT_WEB_JARS_PREFIX_URL ;
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 );
You can’t perform that action at this time.
0 commit comments