title: How to store JSP views in classpath instead of webapp?
body: <p>I want to store JSP files in <code>src/main/resources/templates</code>
  but after setup i get not found error. It seems that <code>spring.mvc.view.prefix</code> only supports path for folder in wepabb folder.</p>
  
  <blockquote>
  <pre><code>Whitelabel Error Page
  This application has no explicit mapping for /error, so you are seeing this as a fallback.
  
  There was an unexpected error (type=Not Found, status=404).
  </code></pre>
  </blockquote>
  
  <p>application.properties</p>
  
  <pre><code>spring.mvc.view.prefix = classpath*:/templates/
  spring.mvc.view.suffix = .jsp
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>@Controller
  public class DemoController {
  
      @RequestMapping("/")
      public String index() {
          return "test";
      }
  }
  </code></pre>
  
  <p>And this is the src file structure:</p>
  
  <pre><code>├───main
  │   ├───java
  │   │   └───com
  │   │       └───example
  │   │           └───demo
  │   │                   DemoApplication.java
  │   │                   DemoController.java
  │   ├───resources
  │   │   └───templates
  │   │           test.jsp
  │   └───webapp
  </code></pre>