title: How to add pages without put addViewController for every page?
body: <p>I was studing about the spring framework, and folowing some tutorials on the internet, and then I found this:</p>
  
  <pre><code>    package control;
      import org.springframework.context.annotation.Configuration;
      import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
      import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
  
      @Configuration
      public class MVCController implements WebMvcConfigurer {
          public void addViewControllers(ViewControllerRegistry registry) {
                registry.addViewController("/index").setViewName("index");
                registry.addViewController("/").setViewName("index");
                registry.addViewController("/hello").setViewName("hello");
                registry.addViewController("/login").setViewName("login");
          }
  
      }
  </code></pre>
  
  <p>So my doubts is:</p>
  
  <ul>
  <li><p><i> How can I put more pages without put new lines to add View Controllers to every page?</i></p></li>
  <li><p><i> There is some way to put some generic controller to pages that I not going to make some processing? (e.g. some static page)</i></p></li>
  </ul>
  
  <p>I'm using the spring 5 and Java JRE 1.8.</p>
  
  <p>Thanks!</p>