https://www.cnblogs.com/xiaoluohao/p/11354145.html
这篇博客已经写的很好了,mark一下
通俗理解:

转发:

使用forward:xxx.action
地址栏不发生变化
可以带request传递
只完成一次请求

重定向

使用redirect:xxx.action
地址栏会发生跳转
不能带request
完成了两次请求
SpringMvc学习笔记-转发和重定向
SpringMvc学习笔记-转发和重定向

最后一个不是很懂,如何访问到WEB-INF目录下的资源了?求指教

SpringMvc学习笔记-转发和重定向

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-12-11
  • 2021-07-18
  • 2021-05-19
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2022-01-02
  • 2021-06-26
  • 2022-12-23
  • 2021-12-28
  • 2021-12-29
相关资源
相似解决方案