title: Gradle for this Spring Boot project + jsp
body: <p>Im using Gradle for this Spring boot project and my task is to create another jsp file , for example : index.jsp and do something that Spring boot can generate that index.jsp</p>
  
  <p>My problem is when i create index.jsp in webapp -> WEB_INF -> index.jsp
  it only return the message 'index' instead of what is in file index.</p>
  
  <p>Application.java</p>
  
  <pre><code>package edu.msudenver.tsp.website;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
  @SpringBootApplication
  public class Application {
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  }
  </code></pre>
  
  <p>PledgeController.java</p>
  
  <pre><code>package edu.msudenver.tsp.website.controllers;
  
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  public class PledgeController {
  
      @GetMapping("/hello")
      public String getHelloMessage() {
          return "index";
      }
  }
  </code></pre>
  
  <p>Application.properties</p>
  
  <pre><code>spring.mvc.view.prefix=/WEB-INF/jsp/
  spring.mvc.view.suffix=.jsp
  </code></pre>
  
  <p>build.gradle</p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '1.5.6.RELEASE'
      }
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse-wtp'
  apply plugin: 'org.springframework.boot'
  apply plugin: 'war'
  
  version = '0.0.1-SNAPSHOT'
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
  
      compile('org.springframework.boot:spring-boot-starter-web')
      providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
      testCompile('org.springframework.boot:spring-boot-starter-test')
  
  }
  </code></pre>
  
  <p>index.jsp</p>
  
  <pre><code>&gt; &lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
  &gt; &lt;html&gt; &lt;head&gt;
  &gt;     &lt;title&gt;Hello Spring mvc&lt;/title&gt; &lt;/head&gt; &lt;body&gt;
  </code></pre>