title: spring mvc how to improve my initBinder
body: <p>I am using spring mvc and am still trying to get my head around binders, formatters and converters.</p>
  
  <p>I have a custom binder behind one of my controllers...</p>
  
  <pre><code>@InitBinder
  public void initBinder(WebDataBinder webDataBinder) {
      SimpleDateFormat df = new SimpleDateFormat(dateFormat);
      df.setLenient(false);
      webDataBinder.registerCustomEditor(Date.class, new CustomDateEditor(df, true));
  }
  </code></pre>
  
  <p>This particular custom binder is not specific to just the form for this controller but will be used everywhere throughout the application. </p>
  
  <p>What is the best way for me to do this more generically for all of my controllers?</p>
  
  <p>P.S. I have got a conversion service so I could use this if it is the right place to do it.</p>
  
  <pre><code>public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean
  </code></pre>
  
  <p>thanks</p>