스프링 웹 플로우로 ftp : // url로 어떻게 리디렉션합니까?
-
08-07-2019 - |
문제
Spring WebFlow를 사용하여 컴퓨팅 된 URL로 FTP 서버로 리디렉션하려고하지만 외부 적용 코드에서는 다음 줄입니다.
} else if (location.startsWith("http://") || location.startsWith("https://")) {
sendRedirect(location, request, response);
} else {
sendServletRelativeRedirect(location, request, response);
}
스프링 웹 플로우를 리디렉션하여 리디렉션하는 방법이 있습니까? ftp://example.com/?
해결책
이것을 사용하는 것을 고려해야합니다.http://www.tuckey.org/urlrewrite/
나는 내가 일하는 봄 프로젝트에 따라 설정했다.
제휴하지 않습니다 StackOverflow