title: Configuring a WebBindingInitializer in Spring XML
body: <p>Is there a way that I can configure a WebBindingInitializer for a bean in Spring XML? I can configure the binder easily using the @InitBinder command, and then settings whatever state I want on it (typically this involves setting up a validator). </p>
  
  <p>An example would be...</p>
  
  <pre><code>&lt;bean id="fooController" class="com.foobar.controller.FooController"&gt;
       &lt;property name="binder" ref="globalBinder" /&gt;
  &lt;bean/&gt;
  </code></pre>
  
  <p>Where the reference is too a WebBindingInitializer that has global properties.</p>