title: Specify which ViewResolver to use per Controller?
body: <p>I have a freemarker viewresolver in my spring application:</p>
  
  <pre><code>&lt;bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"&gt;
  </code></pre>
  
  <p>In my controller methods i can return the name of my freemarker template:</p>
  
  <pre><code>return "timeline";
  </code></pre>
  
  <p>Works without any problems.</p>
  
  <p>Now i've created a new template language and i want a few controllers to use this custom template language. So i created a CustomViewResolver.</p>
  
  <pre><code>&lt;bean id="viewResolver" class="org.CustomViewResolver"&gt;
  </code></pre>
  
  <p>Now i have 2 view resolvers, a freemarker one and my custom one.</p>
  
  <p>How can i specify which ViewResolver should be used by which controller?</p>
  
  <p>Cause my backend will use freemarker and my frontend the custom one.</p>