Skip to content

Commit b362acc

Browse files
author
Badr NASS LAHSEN
authored
Merge pull request #291 from Aloren/remove-enable-web-mvc
Remove @EnableWebMvc from SwaggerConfig
2 parents eb1475e + 906333f commit b362acc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

springdoc-openapi-ui/src/main/java/org/springdoc/ui/SwaggerConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
55
import org.springframework.context.annotation.Bean;
66
import org.springframework.context.annotation.Configuration;
7-
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
87
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
98
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
109

@@ -13,7 +12,6 @@
1312

1413

1514
@Configuration
16-
@EnableWebMvc
1715
@ConditionalOnProperty(name = SPRINGDOC_SWAGGER_UI_ENABLED, matchIfMissing = true)
1816
@SuppressWarnings("deprecation")
1917
public class SwaggerConfig extends WebMvcConfigurerAdapter { // NOSONAR

0 commit comments

Comments
 (0)