title: Error when run: http://localhost:8080
body: <p>Current I have 1 bug when I run 1 project of Spring
  1- Create class common: BlogMvcApplication.java</p>
  
  <pre><code>    package blog;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  
      @SpringBootApplication
      public class BlogMvcApplication {
          public static void main(String[] args) {
              SpringApplication.run(BlogMvcApplication.class, args);
          }
      }
  </code></pre>
  
  <p>2- Create class control: HomeController.java</p>
  
  <pre><code>package blog.controllers;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  
  @Controller
  public class HomeController {
  @RequestMapping("/")
      public String index() {
          return "index";
      }
  }
  </code></pre>
  
  <p>3- view: index.html</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html xmlns:th="http://www.thymeleaf.org"&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;title&gt;Blog&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;h1&gt;Welcome to Spring MVC&lt;/h1&gt;
      Now is: &lt;b th:text="${execInfo.now.time}"&gt;&lt;/b&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Error when access  <a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a> is :</p>
  
  <pre><code>2017-03-02 00:55:41.931 ERROR 1068 --- [nio-8080-exec-1] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8080-exec-1] Exception processing template "index": Error resolving template "index", template might not exist or might not be accessible by any of the configured Template Resolvers
  </code></pre>
  
  <p>2017-03-02 00:55:41.958 ERROR 1068 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template "index", template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause</p>
  
  <p>org.thymeleaf.exceptions.TemplateInputException: Error resolving template "index", template might not exist or might not be accessible by any of the configured Template Resolvers
      at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:246) ~[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE]
      at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1104) ~[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE]
      at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1060) ~[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE]
      at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1011) ~[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE]</p>
  
  <p>I think error because duplicate port 8080 when start
  Please helpme fix bug this
  Thanks!</p>