title: How can i register a global custom editor in Spring-MVC?
body: <p>I use the following custom editor in MANY Spring-MVC controllers according to:</p>
  
  <p>A controller</p>
  
  <pre><code>binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(BigDecimal.class, NumberFormat.getNumberInstance(new Locale("pt", "BR"), true));
  </code></pre>
  
  <p>Other controller</p>
  
  <pre><code>binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(BigDecimal.class, NumberFormat.getNumberInstance(new Locale("pt", "BR"), true));
  </code></pre>
  
  <p>Another controller</p>
  
  <pre><code>binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(BigDecimal.class, NumberFormat.getNumberInstance(new Locale("pt", "BR"), true));
  </code></pre>
  
  <p>Notice the same custom editor registered</p>
  
  <p>Question: how can i set up a global custom editor like this one in order to avoid set up each controller ?</p>
  
  <p>regards,</p>