title: Spring boot cannot resolve view page
body: <p>I am trying to run a simple web application with using Spring Boot but there is a problem with resolving view. When I go to <a href="http://localhost:8080/" rel="noreferrer">http://localhost:8080/</a> it shows;</p>
  
  <pre><code>There was an unexpected error (type=Not Found, status=404).
  </code></pre>
  
  <p>Is there any missing property or library? Why it cannot resolve my html page?</p>
  
  <p>My application.properties;</p>
  
  <pre><code>spring.mvc.view.prefix: WEB-INF/html/
  spring.mvc.view.suffix: .html
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2QnWu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2QnWu.png" alt="enter image description here"></a></p>
  
  <pre><code>@SpringBootApplication
  public class DemoApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(DemoApplication.class, args);
      }
  }
  
  
  
  @Controller
  public class InfoController {
  
      @RequestMapping("/")
      public String getServerInfo(Map&lt;String, Object&gt; model){
  
          //This method works without any problem.
  
          model.put("message", "server info");
          return "info";  
  
      }
  
  }
  </code></pre>