@Configuration
@ConditionalOnWebApplication
@AutoConfigureBefore(value={org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class,org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class})
public class FrameworkMvcConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FrameworkMvcConfiguration.ErrorHandlerConfiguration |
protected static class |
FrameworkMvcConfiguration.KaptchaConfiguration |
protected static class |
FrameworkMvcConfiguration.ObjectMapperBuilderCustomizer |
protected static class |
FrameworkMvcConfiguration.WebMvcConfiguration |
| Constructor and Description |
|---|
FrameworkMvcConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CustomErrorController |
customErrorController(ErrorAttributes errorAttributes,
org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
org.springframework.web.cors.CorsConfigurationSource configSource) |
org.springframework.web.servlet.View |
error(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
java.lang.Boolean okEnable) |
ErrorAttributes |
errorAttributes(java.util.List<IErrorHandler> errorHandlers) |
OrderedHiddenHttpMethodFilter |
hiddenHttpMethodFilter() |
com.fasterxml.jackson.databind.Module |
module(org.springframework.context.ApplicationContext applicationContext,
PackageScanClassResolver packageScanClassResolver) |
OrderedHttpPutFormContentFilter |
putFormContentFilter() |
org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations |
webMvcRegistrations(java.lang.Boolean okEnable) |
@Bean(name="error")
@ConditionalOnMissingBean(name="error")
public org.springframework.web.servlet.View error(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
@Value(value="${app.web.ok.enable:false}")
java.lang.Boolean okEnable)
@Bean
public com.fasterxml.jackson.databind.Module module(org.springframework.context.ApplicationContext applicationContext,
PackageScanClassResolver packageScanClassResolver)
@Bean public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter()
@Bean public OrderedHttpPutFormContentFilter putFormContentFilter()
@ConditionalOnMissingBean(value=ErrorAttributes.class) @Bean public ErrorAttributes errorAttributes(@Autowired(required=false) java.util.List<IErrorHandler> errorHandlers)
@ConditionalOnMissingBean(value=org.springframework.boot.web.servlet.error.ErrorController.class) @Bean public CustomErrorController customErrorController(ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, @Autowired(required=false) @Qualifier(value="corsConfigurationSource") org.springframework.web.cors.CorsConfigurationSource configSource)
@ConditionalOnProperty(prefix="app.web.wrap",
value="enable",
havingValue="true")
@Bean
public org.springframework.boot.autoconfigure.web.servlet.WebMvcRegistrations webMvcRegistrations(@Value(value="${app.web.ok.enable:false}")
java.lang.Boolean okEnable)