RedirectAttributes 在重定向的时候可以传参,不能跨站传参,因为参数是保存在服务器端Session中
SessionFlashMapManager 是RedirectAttributes的内部实现管理类

SessionFlashMapManager flashMapManager = new SessionFlashMapManager();
FlashMap flashMap = new FlashMap();
flashMap.put("key","value");
flashMapManager.saveOutputFlashMap(flashMap,getHttpServletRequest(),getHttpServletResponse());

相关文章:

  • 2022-03-08
  • 2022-12-23
  • 2021-06-25
  • 2021-06-30
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-06-13
猜你喜欢
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-11-26
  • 2021-06-26
  • 2021-09-25
相关资源
相似解决方案