title: Why Spring wont run right path automatic
body: <p>I have this controller:</p>
  <pre><code>@Controller
  @RequestMapping(&quot;/home&quot;)
  public class Home {
  
      @RequestMapping(&quot;/showHome&quot;)
      public String showHome(){
          return &quot;index&quot;;
      }
  
  }
  </code></pre>
  <p>When I run program I got this URL: <code>http://localhost:8080/E-CommerceFinal-1.0-SNAPSHOT/</code> and its 404 not found, but when I add <code>/home/showHome</code> its works. In such simple projects, earlier when I start the program, it automatically throws out the required address</p>