title: SpringMVC url rewrite with tuckey UrlRewriteFilter
body: <p>How can I rewrite url in SpringMVC with <a href="http://tuckey.org/urlrewrite/" rel="nofollow">tuckey's UrlRewriteFilter</a> like this:</p>
  
  <p>From</p>
  
  <p><code>http://localhost:8080/demo/api.do?method=getUser&amp;uid=1001</code></p>
  
  <p>to</p>
  
  <p><code>http://localhost:8080/demo/api/user/1001</code></p>
  
  <p>The controller snippets:</p>
  
  <pre><code>@Controller
  @RequestMapping("/api.do")
  public class APIController {
  
      @RequestMapping(params = "method=getUser")
      public String methodName(HttpServletRequest request) {
          //CODE BLOCK
      }
  }
  </code></pre>