Use Tucky UrlRewriteFilter to hide .jsp at the end of urls
问题 I would like to simple hide the .jsp file extension at the end of all my urls for my Java web app. I've already gotten Tucky UrlRewriteFilter integrated using Maven, but I cannot figure out the magic rule to do what I need. For example: example.com/webapp/home --> example.com/webapp/home.jsp example.com/home --> example.com/home.jsp example.com/blah --> example.com/blah.jsp Does anyone know the trick? I've googled, read the docs, and tried several rules without luck. Thanks! 回答1: Try this: