public class TestInterceptor extends HandlerInterceptorAdapter { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws IOException { // リダイレクト先のパス String redirectPath = request.getContextPath() + "/redirectPath"; // FlashMapを作成 FlashMap flashMap = new FlashMap(); // 渡したい値とキーを設定する flashMap.put("key", "リダイレクト先に値を渡す。"); // リダイレクト先のパスを設定する flashMap.s