Tomcat is not adding trailing slash to web app's context

后端 未结 5 1467
自闭症患者
自闭症患者 2020-12-09 10:10

I\'d like to have Tomcat automatically add a trailing slash to my app\'s context if the url is entered without it.

When I test with Jetty, it automatically adds the

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 10:24

    Have you tried playing with URL Rewrite on Tomcat?
    This might help: http://code.google.com/p/urlrewritefilter/

    If that does not help, take a look at this: URL rewrite in tomcat web.xml

提交回复
热议问题