我有一个 URL,它在调用时会重定向到另一个 URL。我想与重定向一起传递一些数据。
例如我有这个方法:
@RequestMapping("efetuaEnvioEmail")
public String efetuaEnvioEmail(HttpServletResponse response) throws IOException {
System.out.println("efetuaEnvioEmail");
return "redirect:inicio";
}
哪个重定向到这个:
@RequestMapping("inicio")
public String Inicio(HttpServletRequest request) throws IOException {
return "Inicio";
}
我想传递一些数据,告知第一种方法一切正常。
我尝试了一些 HttpServletRequest 和 HttpServletResponse 的方法,但我什么都没有。