JSP is displayed as text when jstl tags are included
<p>I have a project with following code:</p>

<p>Starter:</p>

<pre><code>@SpringBootApplication
public class Starter extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(Starter.class);
}

public static void main(String[] args) {
    SpringApplication.run(Starter.class, args);
}
}
</code></pre>

<p>Controller:</p>

<pre><code>@Controller
public class GreetingController {
@RequestMapping(value = "greeting", method = RequestMethod.GET, produces =    "text/html; charset=UTF-8")
public ModelAndView greeting() {
    ModelAndView modelAndView = new ModelAndView("Greeting");
    return modelAndView;
}
}
</code></pre>

<p>Configuration:</p>

<pre><code>@EnableWebMvc
@Configuration
@ComponentScan(basePackages = {"hello"})
public class SpringWebConfig extends WebMvcConfigurerAdapter {

@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
    registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
}

@Override
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
    configurer.enable();
}

@Bean
public InternalResourceViewResolver jspViewResolver() {
    InternalResourceViewResolver bean = new InternalResourceViewResolver();
    bean.setViewClass(org.springframework.web.servlet.view.JstlView.class);
    bean.setPrefix("/WEB-INF/view/");
    bean.setSuffix(".jsp");
    return bean;
}

}
</code></pre>

<p>JSP (Greeting.jsp):</p>

<pre><code>&lt;%@ page session="false" contentType="text/html; charset=UTF-8" %&gt;
&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;

&lt;html&gt;
&lt;body&gt;
&lt;h1&gt;Spring MVC Hello World Annotation Example&lt;/h1&gt;

&lt;h2&gt;HELLO !&lt;/h2&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>POM: dependencies to springboot and jstl:</p>

<pre><code>     &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
        &lt;version&gt;1.3.2.RELEASE&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;dependency&gt;
        &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
        &lt;artifactId&gt;jstl&lt;/artifactId&gt;
        &lt;version&gt;1.2&lt;/version&gt;
    &lt;/dependency&gt;
</code></pre>

<p>When I sent a request to <a href="http://localhost:8080/greeting" rel="nofollow">http://localhost:8080/greeting</a> I recieved in webbrowser a file Greeting.jsp as a text file (file didn't executed). When I remove from Greeting.jsp following lines:</p>

<pre><code>&lt;%@ page session="false" contentType="text/html; charset=UTF-8" %&gt;
&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
</code></pre>

<p>request is processed correctly - browser shows only text from header tags ("Hello" and "Spring MVC...").</p>

<p>The question is: whats wrong with JSTL view configuration ?</p>