title: Spring MVC 3 - Need help in resolving the url-pattern issue
body: <p>I am developing an app with spring mvc and here is my web.xml</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;admin&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;admin&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>For serving static content, I added the following line in my admin-servlet.xml </p>
  
  <pre><code>&lt;context:component-scan base-package="com.prasanna.blog.Server" /&gt;
  &lt;mvc:resources mapping="/resources/**" location="/"/&gt;
  </code></pre>
  
  <p>I have 5 controllers each mapped to particular url for example  <code>adminRequests.java</code> is mapped to <code>/admin/*</code></p>
  
  <pre><code>@Controller
  @RequestMapping("/admin/*")
  public class AdminRequests
  </code></pre>
  
  <p>Then I have methods inside the class mapped to particular urls.</p>
  
  <p>The problem is, I am getting 404 error when the url-pattern in web.xml is mapped as <code>/</code> .But when I change the url pattern in web.xml to <code>/app</code> or any other , my <code>index.html</code> is served without any issues.</p>
  
  <p>I am not sure where the problem is. Please advice</p>