title: How to replace <mvc:annotation-driven/> with custom beans?
body: <p>As I understand from <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-config-enable" rel="nofollow">docs</a> the <code>&lt;mvc:annotation-driven/&gt;</code> is just a shortcut for registering <code>RequestMappingHandlerMapping</code>, <code>RequestMappingHandlerAdapter</code>, <code>ExceptionHandlerExceptionResolver</code> and some other things. </p>
  
  <p>My question is: how I can manually define same functionality as provides <code>&lt;mvc:annotation-driven/&gt;</code> without using <code>&lt;mvc:annotation-driven/&gt;</code> ? </p>
  
  <p>I.e. I need example of Spring configuration which defines and configures all the beans implicitly created by <code>&lt;mvc:annotation-driven/&gt;</code> shortcut. In other words I need compiled version of  <code>&lt;mvc:annotation-driven/&gt;</code> (with all default values).</p>
  
  <p>P.S. I need it because  <code>&lt;mvc:annotation-driven/&gt;</code> is not so flexible and doesn't provide ways to configure implicitly registered beans (I want to configure <code>alwaysUseFullPath</code> property of <code>RequestMappingHandlerMapping</code>)</p>