【发布时间】:2011-04-20 08:40:01
【问题描述】:
我有一个 Spring 应用程序,它在 Tomcat 上运行,地址为:http://example.com/foo/
DisplatcherServlet 映射到 app/*,例如 index 页面为:
http://example.com/foo/app/index.html
之所以如此,是因为我有其他 servlet(用于 HttpRequestHandlers),例如映射到服务/*。这种方案使用起来很方便,因为这样app/和service/可以有不同的安全设置。
我想要的是http://example.com/foo 重定向到http://example.com/foo/app/index.html。
我如何做到这一点?
【问题讨论】: