title: Spring Boot JSP 404
body: <p>I'm trying to add a jsp page in my Spring Boot service. My problem is that every time I try to go to that page I have this:</p>
  
  <blockquote>
    <p>Whitelabel Error Page</p>
    
    <p>This application has no explicit mapping for /error, so you are seeing
    this as a fallback.</p>
    
    <p>Tue Apr 21 23:16:00 EEST 2015 There was an unexpected error (type=Not
    Found, status=404). No message available</p>
  </blockquote>
  
  <p>I have added the prefix and sufix into my application.properties:</p>
  
  <pre><code>spring.view.prefix: /WEB-INF/jsp/
  spring.view.suffix: .jsp
  </code></pre>
  
  <p>This is my controller class:</p>
  
  <pre><code>@Controller
  public class MarkerController {
      @RequestMapping(value="/map")
      public String trafficSpy() {
          return "index";
      }
  }
  </code></pre>
  
  <p>My Application class:</p>
  
  <pre><code>@SpringBootApplication
  public class Application extends SpringBootServletInitializer {
      private static Logger logger = Logger.getLogger(Application.class.getName());
  
      public static void main(String[] args) {
              logger.info("SPRING VERSION: " + SpringVersion.getVersion());
              SpringApplication.run(Application.class, args);
          }
  }
  </code></pre>
  
  <p>And the index.jsp:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  &lt;html lang="en"&gt;
  
  &lt;body&gt;
      &lt;h1&gt;Hello, World!!!&lt;/h1&gt;
  
  
      &lt;p&gt;JSTL URL: ${url}&lt;/p&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is the src file structure:</p>
  
  <pre><code>├── src
  │   ├── main
  │   │   ├── java
  │   │   │   └── com
  │   │   │       └── example
  │   │   │           └── internetprogramming
  │   │   │               └── myserver
  │   │   │                   └── server
  │   │   │                       ├── Application.java
  │   │   │                       ├── config
  │   │   │                       │   └── DatabaseConfig.java
  │   │   │                       ├── controller
  │   │   │                       │   └── MarkerController.java
  │   │   │                       ├── dao
  │   │   │                       │   ├── MarkerDaoImplementation.java
  │   │   │                       │   └── MarkerDaoInterface.java
  │   │   │                       ├── Marker.java
  │   │   │                       └── service
  │   │   │                           ├── MarkerServiceImplementation.java
  │   │   │                           └── MarkerServiceInterface.java
  │   │   ├── resources
  │   │   │   └── application.properties
  │   │   └── webapp
  │   │       └── WEB-INF
  │   │           └── jsp
  │   │               └── index.jsp
  </code></pre>