title: No mapping found for HTTP request with URI [/WEB-INF/views/welcome.jsp] in DispatcherServlet with name 'dispatcherServlet'
body: <p>I configured the Application and code the "DispatcherServlet" to viewResolver like this:</p>
  
  <pre><code>@Configuration
  @EnableWebMvc
  @ComponentScan ({"controllers"})
  @EnableAutoConfiguration
  @SpringBootApplication
  public class Application {
  
  @Bean
  public InternalResourceViewResolver viewResolver() {
      InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
      viewResolver.setViewClass(JstlView.class);
      viewResolver.setPrefix("/WEB-INF/views/");
      viewResolver.setSuffix(".jsp");
      return viewResolver;
  }
  public static void main(String[] args){
          SpringApplication.run(Application.class, args);
  }
  }
  </code></pre>
  
  <p>Controller class to handle requests looks this:</p>
  
  <pre><code>@Controller
  public class HelloControllerImpl {
  
  @RequestMapping(value= "/welcome", method= RequestMethod.GET)
  public String getWelcomePage(ModelMap model) {
      model.addAttribute("message", "Spring 3 MVC - Hello World");
      model.addAttribute("name", "vzateychuk");
      return "welcome";
  }
  }   
  </code></pre>
  
  <p>The view file: \WEB-INF\views\welcome.jsp</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;h1&gt;Hello, : ${name}&lt;/h1&gt;
      &lt;h2&gt;Message : ${message}&lt;/h2&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The application structure:
  <a href="http://i.stack.imgur.com/Gioio.png" rel="nofollow">Welcome application structure</a>   </p>
  
  <p>I think that something is missing in the configuration files, but I can not see. Could you guest what is wrong and what means: "No mapping found for HTTP request with URI [/WEB-INF/views/welcome.jsp]"?
  Should I provide xml configuratin like dispatcher-servlet.xml or something like that?
  Thank you in advance.</p>
  
  <p>Update: I guessing that my DispatcherServlet unable to find the appropriate view. I have tryed to completely delete /WEB-INF directory, but nothing changes. Probably something wrong with this code:</p>
  
  <pre><code>    public InternalResourceViewResolver viewResolver() {
      InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
      viewResolver.setViewClass(JstlView.class);
      **viewResolver.setPrefix("/WEB-INF/views/");**
  </code></pre>
  
  <p>....
  Can anybody guess what can be wrong? (May it be if the anotation @EnableAutoConfiguration not allow to define viewResolver's prefix?</p>