How does SpringMVC set redirection and forwarding?

How does SpringMVC set redirection and forwarding?

(1) Forward: add "forward:" before the return value,
such as "forward:user.do?name=method4"
(2) Redirect: add "redirect:" before the return value,
such as "redirect:http:/ /www.baidu.com"

Guess you like

Origin blog.csdn.net/m0_51684972/article/details/109227684