title: Request Mapping not working in Spring Boot
body: <p>I have developed a simple web page using Spring Boot and I ma using combination of Class and Method Level Request Mapping Annotation but its not working under the below scenario.</p>
  
  <p>Working when i hit <a href="http://localhost:9999/products" rel="nofollow noreferrer">http://localhost:9999/products</a>
  Not working when i hit <a href="http://localhost:9999/home/products" rel="nofollow noreferrer">http://localhost:9999/home/products</a></p>
  
  <p>Controller Class:
      package com.example.demo;</p>
  
  <pre><code>import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  
  @Controller
  @RequestMapping(value= {"/","/home/"})
  public class MainController {
  
  @RequestMapping(value = {"products"},method=RequestMethod.GET)
  
  public String index()
  {
      return "Home.html";
  }
  
  }
  </code></pre>