Circular View path error Spring boot
<p>I am very new to Spring. I am trying to build a MVC application using Spring Boot which shows a list of products. But i am getting the below error:</p>

<blockquote>
  <p>javax.servlet.ServletException: Circular view path [products]: would
       dispatch back to the current handler URL [/products] again. Check your
       ViewResolver setup! (Hint: This may be the result of an unspecified
       view, due to default view name generation.)</p>
</blockquote>

<p>Here is controller:</p>

<pre><code>package com.springframeworkguru.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.springframeworkguru.services.ProductService;


    @Controller
    public class ProductController {

        private ProductService productService;

        @Autowired
        public void setProductService(ProductService productService) {
            this.productService = productService;
        }

        @RequestMapping("/products")
        public String listProducts(Model model){

            model.addAttribute("products", productService.listAllProducts());

            return "products";
        }

    }
</code></pre>

<p>This is the main class: </p>

<pre><code>package com.springframeworkguru;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

import com.springframeworkguru.controllers.ProductController;

@SpringBootApplication
public class SpringmvcApplication extends SpringBootServletInitializer{

     public static void main(String[] args) {
        SpringApplication.run(SpringmvcApplication.class, args);
    }
}
</code></pre>

<p>and <code>products.html</code>:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en" xmlns:th="http://www.thymeleaf.org"&gt;
&lt;head&gt;
    &lt;title&gt;Spring Core Online Tutorial - List Products&lt;/title&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;

    &lt;link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.4/css/bootstrap.min.css"
          th:href="@{/webjars/bootstrap/3.3.5/css/bootstrap.min.css}"
          rel="stylesheet" media="screen"/&gt;

    &lt;script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.min.js"
            th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"&gt;&lt;/script&gt;

    &lt;link href="../css/spring-core.css"
          th:href="@{css/spring-core.css}" rel="stylesheet" media="screen"/&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class="container"&gt;
    &lt;div th:if="${not #lists.isEmpty(products)}"&gt;
        &lt;h2&gt;Product List&lt;/h2&gt;
        &lt;table class="table table-striped"&gt;
            &lt;tr&gt;
                &lt;th&gt;Id&lt;/th&gt;
                &lt;th&gt;Description&lt;/th&gt;
                &lt;th&gt;Price&lt;/th&gt;
                &lt;th&gt;Image URL&lt;/th&gt;
                &lt;th&gt;List&lt;/th&gt;
            &lt;/tr&gt;
            &lt;tr th:each="product : ${products}"&gt;
                &lt;td th:text="${product.id}"&gt;&lt;/td&gt;
                &lt;td th:text="${product.description}"&gt;&lt;/td&gt;
                &lt;td th:text="${product.price}"&gt;&lt;/td&gt;
                &lt;td th:text="${product.imageUrl}"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;a th:href="${'/product/' + product.id}"&gt;View&lt;/a&gt; &lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The <code>products.html</code> is in <code>/static</code> folder. Also, I am using Eclipse Kepler.</p>