title: how use html and jsp pages in spring boot web application
body: <p>I am using spring boot web application with maven.
  <strong>My issue is that when I am using jsp or html page as a view it display page not found error</strong> but there is no error in my code </p>
  
  <blockquote>
    <p>here is the code that I am use for configure the view resolver and controller
    <strong>code in my controller</strong></p>
  </blockquote>
  
  <pre><code>@RequestMapping("/temp")
  public String temp(){
      return "temp";
  }
  </code></pre>
  
  <blockquote>
    <p>temp is my html page which is located in WEB-INF/html folder</p>
  </blockquote>
  
  <p><strong>code in my config class</strong></p>
  
  <pre><code>@Configuration
  @EnableWebMvc
  @ComponentScan("fileuploadtest")
  public class Config implements WebMvcConfigurer {
  
  @Override
  public void configureViewResolvers(ViewResolverRegistry registry) {
      registry.jsp("/WEB-INF/html/", ".html");
  }
  }
  </code></pre>
  
  <blockquote>
    <p><strong>and the error that was show is</strong></p>
  </blockquote>
  
  <p><strong>o.s.web.servlet.PageNotFound             : No mapping found for HTTP request with URI [/WEB-INF/html/temp.html] in DispatcherServlet with name 'dispatcherServlet'</strong></p>