title: case insensitive mapping for Spring MVC @RequestMapping annotations
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4150039/how-can-i-have-case-insensitive-urls-in-spring-mvc-with-annotated-mappings">How can I have case insensitive URLS in Spring MVC with annotated mappings</a>  </p>
  </blockquote>
  
  
  
  <p>I have Controller having multiple @RequestMapping annotations in it. </p>
  
  <pre><code>@Controller
  public class SignUpController {
  
   @RequestMapping("signup")
   public String showSignUp() throws Exception {
      return "somejsp";
   }
  
   @RequestMapping("fullSignup")
   public String showFullSignUp() throws Exception {
      return "anotherjsp";
   }
  
   @RequestMapping("signup/createAccount")
   public String createAccount() throws Exception {
      return "anyjsp";
   }
  }
  </code></pre>
  
  <p>How can I map these @RequestMapping to case insensitive. i.e. if I use "/fullsignup" or "/fullSignup" I should get "anotherjsp". But this is not happening right now. Only "/fullSignup" is working fine.</p>
  
  <p>I've tried extending RequestMappingHandlerMapping but no success. I've also tried AntPathMatcher like the guy mentioned there is another question on this forum but its also not working for @RequestMapping annotation.</p>
  
  <p>Debugging console
  <img src="https://i.stack.imgur.com/XtRk8.png" alt="enter image description here"></p>
  
  <p>Output console when server is up.</p>
  
  <p><img src="https://i.stack.imgur.com/VSYNY.png" alt="enter image description here"></p>
  
  <p>I've added two images which shows the problem. I've tried both the solutions mentioned below. The console says that it mapped lowercased URLS but when I request to access a method with lowercase url then it shows that the original map where the values are stored stilled contained MixCase URLS. </p>