Unable to resolve MVC view when using Spring and Intellj
<p>Having a confusing issue that may be entirely due to inexperience with both Spring and/or Intellj, but after searching across the internet and SO and the lot, was having no luck on how to fix so here goes.</p>

<p>In a nutshell, I have a sample application that I'm working on to gain some experience with Spring/Hibernate/Maven. It works fine (loads pages as expected, etc...), but in the code, I have a ton of flags for the IDE not able to resolve MVC views, which I can't see as to why this would be the case.</p>

<p>The setup is web.xmlless, using an entirely Java setup with the following Listener configuration as so.</p>

<pre><code>@Override
    public void configureViewResolvers(ViewResolverRegistry registry) {

        InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
        viewResolver.setViewClass(JstlView.class);
        viewResolver.setPrefix("/WEB-INF/views/");
        viewResolver.setSuffix(".jsp");
        registry.viewResolver(viewResolver);
    }
</code></pre>

<p>and here one example of code where it flags that it cannot resolve the MVC view</p>

<pre><code>@RequestMapping(value = { "/", "/list" }, method = RequestMethod.GET)
    public String listUsers(ModelMap model) {

        List&lt;User&gt; users = userService.findAllUsers();
        model.addAttribute("users", users);
        model.addAttribute("loggedinuser", getPrincipal());
        return "userslist";
    }
</code></pre>

<p>with userslist being the offending view not being found.</p>

<p>While I'm fairly certain that it's not a missing Spring plugin, the pom.xml has the following spring components, using version 4.2.5 </p>

<pre><code>&lt;dependency&gt;
            &lt;groupId&gt;org.springframework&lt;/groupId&gt;
            &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
            &lt;version&gt;${springframework.version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework&lt;/groupId&gt;
            &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
            &lt;version&gt;${springframework.version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework&lt;/groupId&gt;
            &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
            &lt;version&gt;${springframework.version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework&lt;/groupId&gt;
            &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
            &lt;version&gt;${springframework.version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework&lt;/groupId&gt;
            &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
            &lt;version&gt;${springframework.version}&lt;/version&gt;
        &lt;/dependency&gt;
</code></pre>

<p>Also using the latest version of IntellJ, 2016.2.4 that is registered.</p>