Code example for WebMvcConfigurationSupport

Methods: mvcConversionServicemvcValidator

0
@Configuration 
public class WebConfig extends WebMvcConfigurationSupport { 
  @Bean 
  public WebBindingInitializer bindingInitializer() { 
    ConfigurableWebBindingInitializer initializer = new LimsBindingInitializer(); 
    initializer.setConversionService(mvcConversionService()); 
    initializer.setValidator(mvcValidator()); 
    return initializer; 
  } 
 
  @Bean 
  public SessionAttributeStore sessionAttributeStore() { 
    SessionConversationAttributeStore sessionAttributeStore = new SessionConversationAttributeStore(); 
    sessionAttributeStore.setNumConversationsToKeep(1000); 
    return sessionAttributeStore; 
  } 
 
  @Bean 
  public RequestMappingHandlerAdapter requestMappingHandlerAdapter() { 
    RequestMappingHandlerAdapter adapter = super.requestMappingHandlerAdapter();