title: Configure java spring boot to read JSP files
body: <p>Does anybody know how to configure java spring boot to read JSP files? The methods which are on the internet is not working for me. I have already added tomcat jasper dependency to porm.xml.</p>
  
  <p>My JSP file:<code>home.jsp</code>,</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  I love java
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Added dependancies in <code>PORM.XML</code></p>
  
  <pre><code>&lt;!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-jasper --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat-embed-jasper&lt;/artifactId&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-tomcat --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
      &lt;version&gt;2.1.3.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;            
  </code></pre>
  
  <p>My controller:<code>HomeController.java</code></p>
  
  <pre><code>package com.example.demo;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.ResponseBody;
  
  @Controller
  public class HomeController {
      @RequestMapping("home")
      @ResponseBody
      public String home() {
          System.out.println("hi");
          return "home.jsp";
      }
  }
  </code></pre>
  
  <p>Please explain what is the problem here?. I'm using STS IDE. Adding tomcat jasper is not working for me.</p>