title: What's the difference between declaring a controller with the Spring Controller stereotype versus as a subclass of the AbstractController?
body: <p>What's the difference between declaring the TestController with the Spring Controller stereotype like this:</p>
  
  <pre><code>import org.springframework.stereotype.Controller;
  //...
  @Controller
  @RequestMapping("/test")
  public class TestController
  </code></pre>
  
  <p>versus as a subclass of the AbstractController like this:</p>
  
  <pre><code>import org.springframework.web.servlet.mvc.AbstractController;
  //...
  public class TestController extends AbstractController
  </code></pre>