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)
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
Modifier and TypeFieldDescriptionstatic final String
The default Spring MVC view prefix.static final String
The default Spring MVC view suffix.static final PathPatternParser
Instance ofPathPatternParser
shared across MVC and actuator configuration. -
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:
-
pathPatternParser
Instance ofPathPatternParser
shared across MVC and actuator configuration.
-
-
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()