Code example for WebMvcConfigurationSupport

0
 * @author Rob Davey 
 * @date 07/02/13 
 * @since 0.1.9 
 */ 
@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; 
  } 
Experience pair programming with AI  Get Codota for Java