title: Spring Web: Correct way to have a single default ViewResolver
body: <p>What is the best way to have every request be sent to a single ViewResolver - specifically in this case a JsonView?</p>
  
  <p>Was thinking this:</p>
  
  <pre><code>&lt;bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
      &lt;property name="viewClass" value="org.springframework.web.servlet.view.json.MappingJacksonJsonView" /&gt;
      &lt;property name="prefix" value="*" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>but, is there something better/easier?</p>