我正在尝试使用Spring WebFlow将计算网址重定向到ftp服务器,但在ExternalRedirect代码中有以下几行:

} else if (location.startsWith("http://") || location.startsWith("https://")) {
    sendRedirect(location, request, response);
} else {
    sendServletRelativeRedirect(location, request, response);
}

有没有办法让Spring WebFlow重定向到 ftp://example.com/

有帮助吗?

解决方案

你应该考虑使用这个: http://www.tuckey.org/urlrewrite/

我对我工作的每个春季项目进行了设置。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top