Class WebMvcAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
@AutoConfiguration(after={DispatcherServletAutoConfiguration.class,TaskExecutionAutoConfiguration.class,ValidationAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({jakarta.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class,org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class})
@ConditionalOnMissingBean(org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.class)
@AutoConfigureOrder(-2147483638)
@ImportRuntimeHints(WebResourcesRuntimeHints.class)
public class WebMvcAutoConfiguration
extends Object
- Since:
- 2.0.0
- Author:
- Phillip Webb, Dave Syer, Andy Wilkinson, Sébastien Deleuze, Eddú Meléndez, Stephane Nicoll, Kristine Jetzke, Bruce Brouwer, Artsiom Yudovin, Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration equivalent to@EnableWebMvc
.static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
DEFAULT_PREFIX
The default Spring MVC view prefix.- See Also:
-
DEFAULT_SUFFIX
The default Spring MVC view suffix.- See Also:
-
-
Constructor Details
-
WebMvcAutoConfiguration
public WebMvcAutoConfiguration()
-
-
Method Details
-
formContentFilter
@Bean @ConditionalOnMissingBean(org.springframework.web.filter.FormContentFilter.class) @ConditionalOnProperty(prefix="spring.mvc.formcontent.filter", name="enabled", matchIfMissing=true) public OrderedFormContentFilter formContentFilter()