View Javadoc

1   package org.cateproject.controller.format;
2   
3   import org.springframework.format.FormatterRegistry;
4   import org.springframework.format.support.FormattingConversionServiceFactoryBean;
5   
6   public class CateFormattingConversionServiceFactoryBean extends
7   		FormattingConversionServiceFactoryBean {
8   	 @Override
9   	 protected void installFormatters(FormatterRegistry registry) {
10  	    super.installFormatters(registry);
11  	    registry.addFormatterForFieldAnnotation(new NotEmptyStringFormatterFactory());
12  	 }
13  
14  }