title: Mapping /error does not work in spring boot
body: <p>I am developing a spring boot application, using boot v 1.2.5,  using thymeleaf as the view technology</p>
  
  <p>In my Mvc Configuration file</p>
  
  <pre><code>@Configuration
  public class MVCConfig extends WebMvcConfigurerAdapter {
  
  
  @Override
  public void addViewControllers(ViewControllerRegistry registry) {
      registry.addViewController("/message").setViewName("message");
      registry.addViewController("/error").setViewName("errors/error");
      registry.addViewController("/login").setViewName("authentication/login");
  }
  </code></pre>
  
  <p>The problem is that the first and last mapping is working fine, but the middle one "error" is not working at all !!</p>
  
  <p>I am using the same rules as the other two templates, same prefix, same directory structure, so it is supposed to work like the other two !!
  But, when i point my browser to /error, spring boot show the fallback error page saying that there is no mapping for /error</p>
  
  <p>when i change it to:
   <code>registry.addViewController("/error").setViewName("errors/error");</code></p>
  
  <p>it works fine for /errors</p>
  
  <p>Spring boot documentation states about the /error handling:
  "For browser clients there is a ‘whitelabel’ error view that renders the same data in HTML format (to customize it just add a View that resolves to ‘error’)."</p>
  
  <p>so, it says to add a view that resolve to error, that's what i did, but it does not work !!</p>
  
  <p>so, what is the problem? why /error does not work?</p>